How to access xmlParserCtxt structure from within xmlSAXHandler callbacks?

Posted by Lux In Tenebris on Stack Overflow See other posts from Stack Overflow or by Lux In Tenebris
Published on 2010-06-12T13:10:57Z Indexed on 2010/06/12 13:12 UTC
Read the original article Hit count: 250

Filed under:
|

I'm parsing (X)HTML pages content with libxml using the following call:

htmlDocPtr doc = htmlSAXParseDoc(content, NULL, &html_handler, NULL);

But for debugging purposes I need to analyze some of the current node properties in the start/end element callbacks. I know that the fourth argument of htmlSAXParseDoc can be used to pass any user defined data to the callbacks, but I don't have a pointer to xmlParserCtxt.

© Stack Overflow or respective owner

Related posts about libxml2

Related posts about libxml