Register a Python written function to the XPath interpreter Register a Python written function to for error reporting. The function is called back as f(ctx, error). Create a progressive XML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise. Create a progressive HTML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise. Get the document tree from a parser context. Get the well formed information from a parser context. Get the validity information from a parser context. Switch the parser to validation mode. Switch the parser to replace entities. Switch the parser to be pedantic. Switch the parser to load the DTD without validating. Switch on the generation of line number for elements nodes. Switch on the generation of line number for elements nodes. Also returns the number of bytes allocated and not freed by libxml2 since memory debugging was switched on. dump the memory allocated in the file .memdump Get the namespace of a node Get the namespace of a node Get the xpathContext from an xpathParserContext Get the doc from an xpathContext Get the current node from an xpathContext Get the current node from an xpathContext Get the current node from an xpathContext Get the current function name xpathContext Get the current function name URI xpathContext