Fri, 25 Jan 2008 14:29:58 +0530, /Mukul Gandhi/:
Even for elements like <xxx/>, the SAX parser produces character
events. But the text content will be null.
I am presently not sure, what the SAX standard says. I'll leave it for
others to comment.
Your first statement is not true, at least for Xerces (see my other
reply in this thread).
Regarding you second statement "But the text content will be null.":
void characters (char ch[], int start, int length)
I think it is logical if the 'length' parameter to a character
callback is > 0, 'ch' cannot be null, and if length == 0 then no
character callback should be made, so 'ch' should never be null.
This could also be deducted from the general principle if the
contract doesn't explicitly state null values are permitted - they
are not.
--
Stanimir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]