00001 #ifndef XMLPARSER_H_PROTECTOR 00002 #define XMLPARSER_H_PROTECTOR 00003 00004 #include "xmlnode.h" 00005 00006 namespace afl 00007 { 00011 class XMLParser 00012 { 00013 public: 00014 virtual ~XMLParser() { } 00015 00024 virtual XMLNode* parseFile(const std::string& filename) = 0; 00025 00034 virtual XMLNode* parseString(const std::string& xml) = 0; 00035 00039 static XMLParser* getDefaultParser(); 00040 }; 00041 00042 } 00043 00044 #endif 00045