FW: [Expat-discuss] problem parsing two files in application

Greg Martin Greg.Martin at TELUS.COM
Tue May 27 09:58:01 EDT 2003


Thanks for your help Karl. Using your suggestion stopped the error and pointed to the real problem. For reasons beyond my ken I had shadowed the done variable so it was changing value with each loop - mea culpa not expat.
Greg. 

-----Original Message-----
From: Karl Waclawek [mailto:karl at waclawek.net]
Sent: Tuesday, May 27, 2003 9:08 AM
To: Greg Martin; expat-discuss at libexpat.org
Subject: Re: [Expat-discuss] problem parsing two files in application


I couldn't see anything wrong with your code.

Does this happen always with the second file you parse, not matter which file?
Or is it always the same file? Have you checked the file for extra characters at the end?

You could also try this:
...
  if(XML_Parse(p, buf, len, len == 0) == XML_STATUS_ERROR)
...

Karl

----- Original Message ----- 
From: "Greg Martin" <Greg.Martin at TELUS.COM>
To: <expat-discuss at libexpat.org>
Sent: Tuesday, May 27, 2003 10:34 AM
Subject: RE: [Expat-discuss] problem parsing two files in application


Thanks for the quick reply. I'm using expat-1.95.6 built for Compaq Tru64.








More information about the Expat-discuss mailing list