Monday, March 26, 2007

Friday, March 16, 2007

Expat's little problem

While trying to parse my self-built XML file (with all possible legal standard headers), expat spit out the following error
Parse error at line XXX:
not well-formed (invalid token)


The XML file was good in all aspects, is what I had thought. Expat (ver 2.0.0) didnt think so. The bad part was that it parsed the whole file (including ending token) and THEN he gave the above error. Out of the wild, a thought struck me (yup, it happens to me too).

I opened the XML file and added a new line AFTER the last token. And Voila! it worked. Now, expat was happy. I was happy. All was well that ended (well actually, started) well. Need to report this to the developers(shud have been).