Re: [xml] usage for XML xmlParseChunk



On Mon, Sep 15, 2008 at 05:48:51PM -0700, Prashanth R wrote:
My client code is making calls to

 xmlParseChunk(m_xmlContextPtr, buffer, numBytes, terminate);

with passing in chunks of XML data. Is it Necessary that these chunks need
to have complete < and > tags .

  no as long as the document is well formed you can cut at any place.


So consider this sequence

xmlParseChunk 1 --> passing 4 characters <root
xmlParseChunk 2 --> passing rest of the buffer
 >
[...]
I find that the second call fails with an error code of 73

XML_ERR_GT_REQUIRED


can someone shed some help on this ?

  I would suspect a bug in your code. Use a debugger to check your
buffers when passed down to the library.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]