12 #ifndef ROOT_TXMLParser 13 #define ROOT_TXMLParser 21 struct _xmlParserCtxt;
virtual void InitializeContext()
Initialize parser parameters, such as, disactivate non-standards libxml1 features, on/off validation, clear error and warning messages.
void SetReplaceEntities(Bool_t val=kTRUE)
The parser will replace/expand entities.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
virtual void ReleaseUnderlying()
To release any existing document.
Int_t fParseCode
To keep track of the errorcodes.
Bool_t GetValidate() const
void SetValidate(Bool_t val=kTRUE)
The parser will validate the xml file if val = true.
virtual Int_t ParseBuffer(const char *contents, Int_t len)=0
_xmlParserCtxt * fContext
Parse the xml file.
virtual void SetParseCode(Int_t code)
Set the parse code:
virtual void OnValidateError(const TString &message)
This function is called when an error from the parser has occured.
const char * GetParseCodeMessage(Int_t parseCode) const
Returns the parse code message.
void SetStopOnError(Bool_t stop=kTRUE)
Set parser stops in case of error:
TXMLParser()
Initializes parser variables.
#define ClassDef(name, id)
virtual void StopParser()
Stops parsing.
virtual Int_t ParseFile(const char *filename)=0
Int_t GetParseCode() const
const char * GetValidateError() const
Bool_t GetStopOnError() const
TXMLParser is an abstract class which interfaces with Libxml2.
TXMLParser & operator=(const TXMLParser &)
virtual ~TXMLParser()
Cleanup.
Bool_t fValidate
To validate the parse context.
Mother of all ROOT objects.
TString fValidateWarning
Parse warning.
Bool_t fReplaceEntities
Replace entities.
Bool_t fStopError
Stop when parse error occurs.
TString fValidateError
Parse error.
Bool_t GetReplaceEntities() const
virtual void OnValidateWarning(const TString &message)
This function is called when a warning from the parser has occured.
const char * GetValidateWarning() const