Re: 'Re: [xml] "xmlReadxxx & structured error handler & userData'
- From: Daniel Veillard <veillard redhat com>
- To: Kasimier Buchcik <kbuchcik 4commerce de>
- Cc: xml gnome org
- Subject: Re: 'Re: [xml] "xmlReadxxx & structured error handler & userData'
- Date: Thu, 12 Feb 2004 10:40:36 -0500
On Thu, Feb 12, 2004 at 04:36:08PM +0100, Kasimier Buchcik wrote:
Yes, I wasn't sure about this. But the dilemma is that I can set
*nothing* on the context, no userData nor _private, since the
xmlParserContext is created inside the xmlReadxxx functions.
Then you need the xmlReadCtxtxxx functions, they are usually
dedicated to repeated parsing but if you need to access the context
that's the way. Apparently there is no example in
http://xmlsoft.org/examples/index.html
demonstrating their use but xmllint.c does, e.g.
ctxt = xmlNewParserCtxt();
/* tweak ctxt here */
doc = xmlCtxtReadFile(ctxt, filename, NULL, options);
/* when you're done */
xmlFreeParserCtxt(ctxt);
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]