XML parsing. (endElement() not fired) It fires when a space is added

Hi All,

I am doing XML Parsing using SAX.

I have a very simple xml.

<?xml version="1.0" encoding="UTF-8" ?><message msgType="attr-list-request" sessionId="234455567" ><form formId="35"> </form></message>

This xml doesn't have any space until the end. ie) it is written in one single line into the file...

endElement() is not fired at all. If I add a single space between <form> start and close tags, all the endElement()s are fired properly.... Its very strange...

have any body got this problem? any kind of suggestions will be helpful.

thanks

[631 byte] By [saracgia] at [2007-11-26 18:34:39]
# 1
You would have furnished with java code you tried. Anyway, your xml file works well with my SAX implementation in all scenarios like space, no space, empty element, no attributes etc. Give your code, if you have still problems.
baskarpra at 2007-7-9 6:08:45 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Thanks Bhaskar. I believed that the problem was with my code. And it was. In endElement(), a null checking condition was blocking the execution.I fixed that point. It works fine.
saracgia at 2007-7-9 6:08:45 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...