29 #ifndef _RNG_VALIDATOR_H 30 #define _RNG_VALIDATOR_H 32 #include <libxml/xmlreader.h> 33 #include <libxml/relaxng.h> 60 static bool run(
const std::string& xml_file_pathname,
const std::string& rng_file_pathname);
63 static void readerErr(
void* arg,
const char*
const msg, xmlParserSeverities severity, xmlTextReaderLocatorPtr locator);
67 static void structErr(
void* userData, xmlErrorPtr error);
70 static void rngWarn(
void* ctx,
const char*
const msg, xmlParserSeverities severity, xmlTextReaderLocatorPtr locator);
73 static void rngErr(
void* ctx,
const char*
const msg, xmlParserSeverities severity, xmlTextReaderLocatorPtr locator);
75 virtual void iAmAbstract() = 0;
static bool run(const std::string &xml_file_pathname, const std::string &rng_file_pathname)
Validate an XML file based on a RelaxNG Schema.
Definition: rngvalidator.cpp:82
Definition: abstractiter.h:32
RelaxNG validator.
Definition: rngvalidator.h:41