Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TDOMParser.h
Go to the documentation of this file.
1// @(#)root/xmlparser:$Id$
2// Author: Jose Lo 12/4/2005
3
4/*************************************************************************
5 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TDOMParser
13#define ROOT_TDOMParser
14
15#include "TXMLParser.h"
16
17#include "TXMLDocument.h"
18
19
20class TDOMParser : public TXMLParser {
21
22private:
23 TXMLDocument *fTXMLDoc; ///< xmlDoc
24
25 TDOMParser(const TDOMParser&); // Not implemented
26 TDOMParser& operator=(const TDOMParser&); // Not implemented
28
29public:
30 TDOMParser();
31 virtual ~TDOMParser();
32
33 virtual Int_t ParseFile(const char *filename);
34 virtual Int_t ParseBuffer(const char *buffer, Int_t len);
35 virtual void ReleaseUnderlying();
36
37 virtual TXMLDocument *GetXMLDocument() const;
38
39 ClassDef(TDOMParser, 0); // DOM Parser
40};
41
42#endif
#define ClassDef(name, id)
Definition Rtypes.h:325
virtual TXMLDocument * GetXMLDocument() const
Returns the TXMLDocument.
TDOMParser & operator=(const TDOMParser &)
Int_t ParseContext()
Creates a XML document for the parser.
virtual ~TDOMParser()
TDOMParser destructor, it calls ReleaseUnderlying().
TDOMParser()
TDOMParser constructor.
virtual void ReleaseUnderlying()
Release any existing document.
TDOMParser(const TDOMParser &)
TXMLDocument * fTXMLDoc
xmlDoc
Definition TDOMParser.h:23
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.
TXMLDocument contains a pointer to an xmlDoc structure, after the parser returns a tree built during ...
TXMLParser is an abstract class which interfaces with Libxml2.
Definition TXMLParser.h:24