Logo ROOT   6.10/09
Reference Guide
TXMLDocument.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_TXMLDocument
13 #define ROOT_TXMLDocument
14 
15 #include "TObject.h"
16 
17 #include "TString.h"
18 
19 
20 struct _xmlDoc;
21 class TXMLNode;
22 
23 
24 class TXMLDocument : public TObject {
25 
26 private:
27  TXMLDocument(const TXMLDocument&); // Not implemented
28  TXMLDocument& operator=(const TXMLDocument&); // Not implemented
29 
30  _xmlDoc *fXMLDoc; // libxml xml doc
31  TXMLNode *fRootNode; // the root node
32 
33 public:
34  TXMLDocument(_xmlDoc *doc);
35  virtual ~TXMLDocument();
36 
37  TXMLNode *GetRootNode() const;
38 
39  const char *Version() const;
40  const char *Encoding() const;
41  const char *URL() const;
42 
43  ClassDef(TXMLDocument,0) // XML document created by the DOM parser
44 };
45 
46 #endif
const char * Encoding() const
Returns external initial encoding, if any or 0 in case there is no document set.
TXMLNode * fRootNode
Definition: TXMLDocument.h:31
TXMLDocument(const TXMLDocument &)
TXMLDocument & operator=(const TXMLDocument &)
virtual ~TXMLDocument()
TXMLDocument destructor.
TXMLDocument contains a pointer to an xmlDoc structure, after the parser returns a tree built during ...
Definition: TXMLDocument.h:24
#define ClassDef(name, id)
Definition: Rtypes.h:297
const char * URL() const
Returns the URI for the document or 0 in case there is no document set.
const char * Version() const
Returns the XML version string or 0 in case there is no document set.
_xmlDoc * fXMLDoc
Definition: TXMLDocument.h:30
TXMLNode * GetRootNode() const
Returns the root element node.
Mother of all ROOT objects.
Definition: TObject.h:37
TXMLNode contains a pointer to xmlNode, which is a node under the DOM tree.
Definition: TXMLNode.h:22