28 #include <libxml/tree.h> 29 #include <libxml/parserInternals.h> 74 fContext = xmlCreateFileParserCtxt(filename);
84 const char *dir = xmlParserGetDirectory(filename);
85 fContext->directory = (
char *)xmlStrdup((
const xmlChar *)dir);
98 fContext = xmlCreateMemoryParserCtxt(buffer, len);
virtual ~TDOMParser()
TDOMParser destructor, it calls ReleaseUnderlying().
virtual void InitializeContext()
Initialize parser parameters, such as, disactivate non-standards libxml1 features, on/off validation, clear error and warning messages.
virtual void ReleaseUnderlying()
Release any existing document.
virtual void ReleaseUnderlying()
To release any existing document.
_xmlParserCtxt * fContext
Parse the xml file.
virtual void SetParseCode(Int_t code)
Set the parse code:
TXMLDocument contains a pointer to an xmlDoc structure, after the parser returns a tree built during ...
virtual Int_t ParseBuffer(const char *buffer, Int_t len)
It parses a buffer, much like ParseFile().
virtual Int_t ParseFile(const char *filename)
Parse the XML file where filename is the XML file name.
TDOMParser()
TDOMParser constructor.
virtual TXMLDocument * GetXMLDocument() const
Returns the TXMLDocument.
TXMLDocument * fTXMLDoc
xmlDoc
Int_t ParseContext()
Creates a XML document for the parser.