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