TXMLDocument.h

Go to the documentation of this file.
00001 // @(#)root/xmlparser:$Id: TXMLDocument.h 21809 2008-01-22 16:11:46Z brun $
00002 // Author: Jose Lo   12/4/2005
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TXMLDocument
00013 #define ROOT_TXMLDocument
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 // TXMLDocument                                                         //
00018 //                                                                      //
00019 // TXMLDocument contains a pointer to an xmlDoc structure, after the    //
00020 // parser returns a tree built during the document analysis.            //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_TObject
00025 #include "TObject.h"
00026 #endif
00027 
00028 #ifndef ROOT_TString
00029 #include "TString.h"
00030 #endif
00031 
00032 
00033 struct _xmlDoc;
00034 class TXMLNode;
00035 
00036 
00037 class TXMLDocument : public TObject {
00038 
00039 private:
00040    TXMLDocument(const TXMLDocument&);            // Not implemented
00041    TXMLDocument& operator=(const TXMLDocument&); // Not implemented
00042 
00043    _xmlDoc  *fXMLDoc;           // libxml xml doc
00044    TXMLNode *fRootNode;         // the root node 
00045 
00046 public:
00047    TXMLDocument(_xmlDoc *doc);
00048    virtual ~TXMLDocument();
00049 
00050    TXMLNode   *GetRootNode() const;
00051 
00052    const char *Version() const;
00053    const char *Encoding() const;
00054    const char *URL() const;
00055 
00056    ClassDef(TXMLDocument,0)  // XML document created by the DOM parser
00057 };
00058 
00059 #endif

Generated on Tue Jul 5 14:28:30 2011 for ROOT_528-00b_version by  doxygen 1.5.1