12 #ifndef ROOT_TXMLParser
13 #define ROOT_TXMLParser
27 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...
static const char * filename()
virtual void ReleaseUnderlying()
To release any existing document.
Int_t fParseCode
To keep track of the errorcodes.
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.
Bool_t GetValidate() const
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.
Bool_t GetReplaceEntities() const
void SetStopOnError(Bool_t stop=kTRUE)
Set parser stops in case of error:
TXMLParser()
Initializes parser variables.
Int_t GetParseCode() const
virtual void StopParser()
Stops parsing.
virtual Int_t ParseFile(const char *filename)=0
const char * GetParseCodeMessage(Int_t parseCode) const
Returns the parse code message.
TXMLParser is an abstract class which interfaces with Libxml2.
TXMLParser & operator=(const TXMLParser &)
Bool_t GetStopOnError() const
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.
const char * GetValidateError() const
virtual void OnValidateWarning(const TString &message)
This function is called when a warning from the parser has occured.
const char * GetValidateWarning() const