Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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