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

On Wed, Sep 25, 2002 at 03:21:08PM -0400, Asorokin wrote:
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
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 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]