[ expat-Bugs-580258 ] Problem with GetBuffer/ParseBuffer
noreply@sourceforge.net
noreply@sourceforge.net
Thu Jul 11 12:41:08 2002
Bugs item #580258, was opened at 2002-07-11 14: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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=580258&group_id=10127