Re: 'Re: [xml] "xmlReadxxx & structured error handler & userData'

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
demonstrating their use but xmllint.c does, e.g.

    ctxt = xmlNewParserCtxt();
    /* tweak ctxt here */
    doc = xmlCtxtReadFile(ctxt, filename, NULL, options);
    /* when you're done */


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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