Re: [xml] _private member of xmlParserCtxt in xmlExternalEntityLoader callback



On Wed, Sep 25, 2002 at 03:21:08PM -0400, Asorokin wrote:
Hi,
I'm trying to use my private data inside  redefined external entity loader.
Inside my callback I found what if parser state ctxt->instate is equal to
XML_PARSER_START
then ctxt->_private is NULL . In other parser states the _private member
seems to be Ok.

  When do you set-up ctxt->_private ?

For some reasons I can't use global variable to get my private data inside
callback. Can anybody
suggest how to get private data inside redefined external entity loader
when ctxt->instate == XML_PARSER_START

  A priori I don't see why you would have this behaviour, but it all
depend when you initialize it and the kind of interface you use, are
you using the push parser interface. Give more informations, this
is not sufficient !

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]