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.
static const char * filename()
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 TXMLDocument * GetXMLDocument() const
Returns the TXMLDocument.
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.
TXMLDocument * fTXMLDoc
xmlDoc
Int_t ParseContext()
Creates a XML document for the parser.