Re: [xml] Creating tree in push mode.



On Mon, Jan 05, 2004 at 05:48:28PM -0800, Sridhar Guthula wrote:
xmlParseChunk and xmlCreatePushParserCtxt are tied up with SAX. As I
understand, Libxml doesn't have validation with SAX.  If not for the
push mode, I have to do the expensive copy (may be Realloc) for every
chunk.

  Push generates a tree by default. Just give NULL SAX and data arguments.
Check the code for xmllint.c when using the --push option.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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