#ifndef XML_SCHEMA_LOCATOR_H #define XML_SCHEMA_LOCATOR_H #include #include #include "wrapexpat.h" struct SchemaLocatorData { std::string schemaLocation; XML_Parser parser; }; class XmlSchemaLocator : public WrapExpat { public: XmlSchemaLocator(); virtual ~XmlSchemaLocator(); std::string getSchemaLocation(); private: std::auto_ptr d; static void XMLCALL starthandler( void *data, const XML_Char *el, const XML_Char **attr); }; #endif