xml-copy-editor-code/src/xmlschemalocator.h

29 lines
524 B
C
Raw Normal View History

2007-09-07 23:17:30 +02:00
#ifndef XML_SCHEMA_LOCATOR_H
#define XML_SCHEMA_LOCATOR_H
#include <expat.h>
#include <string>
#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<SchemaLocatorData> d;
static void XMLCALL starthandler(
void *data,
const XML_Char *el,
const XML_Char **attr);
};
#endif