Re: [xml] PushParser Question



On Wed, Apr 03, 2002 at 03:31:02PM -0500, Henning Follmann wrote:
Hello,
I have a question about xmlCreatePushParserCtxt()
I want to create a SAX parser. To create the SAX pareser I use the first
two parameters. At the point of creation I do not have any data to
parse, so I want to set chunk = NULL and size = 0
The documentation says: "size should be >= 4"
Is it possible to just initialize the Ctxt without actually using it at
this point?

  yes just provide a NULL pointer and 0 data len, it should work.

 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]