Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

XmlParser.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/xml/xml/XmlParser.h,v 1.6 2001/09/17 23:52:50 jrb Exp $
00002 // Author:  J. Bogart
00003 
00004 #ifndef XML_XMLPARSER_H
00005 #define XML_XMLPARSER_H
00006 
00007 #include "xml/XmlErrorHandler.h"
00008 #include <parsers/DOMParser.hpp> // indirectly includes DOM_Document, DOM_Element...
00009 #include <string>
00010 #include <iosfwd>
00011 
00012 class LocalFileInputSource;
00013 
00014 
00015 namespace xml {
00018   class XmlParser {
00019   public:
00020     XmlParser();
00021     ~XmlParser();
00022 
00024     DOM_Document parse(const char* const filename);
00025 
00026 
00028     DOM_Document parse(const std::string& buffer );
00029 
00030   private:
00031     DOMParser* m_parser;
00032     XmlErrorHandler* m_errorHandler;
00033     bool             m_errorsOccurred;
00034 
00035     static int didInit;
00036   };
00037 }
00038 #endif

Generated at Wed Nov 21 12:22:26 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000