00001 // @(#)root/xmlparser:$Id: TDOMParser.h 23637 2008-05-02 11:12:04Z rdm $ 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_TDOMParser 00013 #define ROOT_TDOMParser 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TDOMParser // 00018 // // 00019 // DOM stands for the Document Object Model; this is an API for // 00020 // accessing XML or HTML structured documents. // 00021 // The Document Object Model is a platform and language-neutral // 00022 // interface that will allow programs and scripts to dynamically // 00023 // access and update the content, structure and style of documents. // 00024 // // 00025 // The parser returns a tree built during the document analysis. // 00026 // // 00027 ////////////////////////////////////////////////////////////////////////// 00028 00029 #ifndef ROOT_TXMLParser 00030 #include "TXMLParser.h" 00031 #endif 00032 00033 #ifndef ROOT_TXMLDocument 00034 #include "TXMLDocument.h" 00035 #endif 00036 00037 00038 class TDOMParser : public TXMLParser { 00039 00040 private: 00041 TXMLDocument *fTXMLDoc; // xmlDoc 00042 00043 TDOMParser(const TDOMParser&); // Not implemented 00044 TDOMParser& operator=(const TDOMParser&); // Not implemented 00045 Int_t ParseContext(); 00046 00047 public: 00048 TDOMParser(); 00049 virtual ~TDOMParser(); 00050 00051 virtual Int_t ParseFile(const char *filename); 00052 virtual Int_t ParseBuffer(const char *buffer, Int_t len); 00053 virtual void ReleaseUnderlying(); 00054 00055 virtual TXMLDocument *GetXMLDocument() const; 00056 00057 ClassDef(TDOMParser, 0); // DOM Parser 00058 }; 00059 00060 #endif