[ expat-Bugs-580258 ] Problem with GetBuffer/ParseBuffer
noreply@sourceforge.net
noreply@sourceforge.net
Thu Jul 11 12:52:05 2002
Bugs item #580258, was opened at 2002-07-11 15:40
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=580258&group_id=10127
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Christopher M. Woods (cmwoods)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with GetBuffer/ParseBuffer
Initial Comment:
This is my first post so forgive me if I leave anything
out...
I've encountered a problem while using the
XML_GetBuffer/XML_ParserBuffer methods of the Expat
library. [Using libexpatw.lib, on Win2K w/ MSVC++ 6.0 -
sp5, wide chars (UNICODE), with a UTF-16 encoded
XML file of roughly 33KB of data.] When using these
methods, I've experienced errors from the parser stating
one of the following: not well-formed XML, illegal token,
or unclosed token. Each of the errors appear
consistently for a given file and a given buffer size.
I haven't narrowed down the problem yet - and will
include more information once I get a chance to dig into
the code further. I can tell you that I get no errors on the
file if I read it into my own buffer and use the XML_Parse
method. I can also tell you that I DO GET errors if I
request a buffer large enough for the file, read the file
into the buffer, and then call XML_ParseBuffer... so the
problem appears to be [at least on the surface] with
XML_ParseBuffer.
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-07-11 15:51
Message:
Logged In: YES
user_id=3066
Are you using Expat 1.95.3 or the CVS version of Expat?
If you're not using the CVS version, can you take a look at
that version and try to reproduce the problem? You can get
information on getting the CVS version anonymously at:
http://www.libexpat.org/dev/cvs.html
Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=580258&group_id=10127