35 #ifndef OPENMS_FORMAT_VALIDATORS_XMLVALIDATOR_H
36 #define OPENMS_FORMAT_VALIDATORS_XMLVALIDATOR_H
40 #include <xercesc/sax/ErrorHandler.hpp>
52 private xercesc::ErrorHandler
66 bool isValid(
const String & filename,
const String & schema, std::ostream & os = std::cerr);
78 virtual void warning(
const xercesc::SAXParseException &
exception);
79 virtual void error(
const xercesc::SAXParseException &
exception);
80 virtual void fatalError(
const xercesc::SAXParseException &
exception);
81 virtual void resetErrors();
87 #endif // OPENMS_FORMAT_VALIDATORS_XMLVALIDATOR_H
A more convenient string class.
Definition: String.h:56
std::ostream * os_
Definition: XMLValidator.h:74
String filename_
File name of validated file (for error messages)
Definition: XMLValidator.h:72
Validator for XML files.
Definition: XMLValidator.h:51
bool valid_
Flag if the validated file is valid.
Definition: XMLValidator.h:70
int exception
(Used by various macros. Indicates a rough category of the exception being caught.)