Logo ROOT   6.16/01
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
20struct _xmlDoc;
21class TXMLNode;
22
23
24class TXMLDocument : public TObject {
25
26private:
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
33public:
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
#define ClassDef(name, id)
Definition: Rtypes.h:324
Mother of all ROOT objects.
Definition: TObject.h:37
TXMLDocument contains a pointer to an xmlDoc structure, after the parser returns a tree built during ...
Definition: TXMLDocument.h:24
const char * Encoding() const
Returns external initial encoding, if any or 0 in case there is no document set.
TXMLDocument & operator=(const TXMLDocument &)
_xmlDoc * fXMLDoc
Definition: TXMLDocument.h:30
TXMLNode * GetRootNode() const
Returns the root element node.
const char * Version() const
Returns the XML version string or 0 in case there is no document set.
virtual ~TXMLDocument()
TXMLDocument destructor.
const char * URL() const
Returns the URI for the document or 0 in case there is no document set.
TXMLNode * fRootNode
Definition: TXMLDocument.h:31
TXMLDocument(const TXMLDocument &)
TXMLNode contains a pointer to xmlNode, which is a node under the DOM tree.
Definition: TXMLNode.h:22