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