[Expat-discuss] Beginner problem
Karl Waclawek
karl@waclawek.net
Fri, 6 Sep 2002 20:26:20 -0400
> Hi all,
>
> I am having a weird problem I can't figure out. Much help would be
> appreciated.
>
> I have some code - I always get a "not well formed (invalid token)"
> error at the
> end of the file. I can't figure it out. I KNOW the document is well
<snip/>
> if (readTextFile(buff, doc, sz) <= 0) //Read the xml file
> return NULL;
> if (! XML_ParseBuffer(parser, sz, 0)) //Parse the doc
If you only use one buffer, you need to set the isFinal argument to <> 0,
otherwise the parser expects more data.
Karl