12 #ifndef ROOT_TSAXParser 13 #define ROOT_TSAXParser 15 #ifndef ROOT_TXMLParser 21 class TSAXParserCallback;
22 struct _xmlSAXHandler;
virtual void OnComment(const char *text)
Emit a signal for OnComment, where text is the comment.
virtual Int_t ParseBuffer(const char *contents, Int_t len)
It parse the contents, instead of a file.
_xmlSAXHandler * fSAXHandler
libxml2 SAX handler
TSAXParser is a subclass of TXMLParser, it is a wraper class to libxml library.
virtual void OnStartDocument()
Emit a signal for OnStartDocument.
virtual void OnWarning(const char *text)
Emit a signal for OnWarning, where text is the warning.
virtual Int_t OnError(const char *text)
Emit a signal for OnError, where text is the error and it returns the Parse Error Code...
#define ClassDef(name, id)
virtual ~TSAXParser()
TSAXParser desctructor.
friend class TSAXParserCallback
virtual void OnEndElement(const char *name)
Emit a signal for OnEndElement, where name is the Element's name.
TSAXParser & operator=(const TSAXParser &)
virtual Int_t Parse()
This function parses the xml file, by initializing the parser and checks whether the parse context is...
virtual void OnEndDocument()
Emit a signal for OnEndDocument.
TXMLParser is an abstract class which interfaces with Libxml2.
TSAXParser()
Create SAX parser.
virtual void OnCdataBlock(const char *text, Int_t len)
Emit a signal for OnCdataBlock.
virtual void ConnectToHandler(const char *handlerName, void *handler)
A default TSAXParser to a user-defined Handler connection function.
virtual void OnCharacters(const char *characters)
Emit a signal for OnCharacters, where characters are the characters outside of tags.
virtual Int_t OnFatalError(const char *text)
Emit a signal for OnFactalError, where text is the error and it returns the Parse Error Code...
virtual void OnStartElement(const char *name, const TList *attr)
Emit a signal for OnStarElement, where name is the Element's name and attribute is a TList of (TObjSt...
virtual Int_t ParseFile(const char *filename)
It creates the parse context of the xml file, where the xml file name is filename.