"Mukul Gandhi" <[EMAIL PROTECTED]> wrote on 01/25/2008 03:59:58 AM:
> > Can you explain why you think the character event should occurs inbetween > > start/end element event when the only text nodes are before and after the > > element? I'm sorry it just seems wrong to me. > > Even for elements like <xxx/>, the SAX parser produces character > events. But the text content will be null. I suppose the SAX spec doesn't forbid that but Xerces doesn't do that. You'll get a startElement() event followed by an endElement() event. The only exception to that is if you're doing schema validation and the validator inserted a default element value. Then you'll get a characters() event. > I am presently not sure, what the SAX standard says. I'll leave it for > others to comment. > > I'll try this scenario myself, and share my findings. > > -- > Regards, > Mukul Gandhi > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]