13#include <xercesc/sax/ErrorHandler.hpp>
27 private xercesc::ErrorHandler
45 bool isValid(
const std::string& filename,
const std::string& schema, std::ostream& os = std::cerr);
57 void warning(
const xercesc::SAXParseException& exception)
override;
58 void error(
const xercesc::SAXParseException& exception)
override;
59 void fatalError(
const xercesc::SAXParseException& exception)
override;
Validator for XML files.
Definition XMLValidator.h:28
void resetErrors() override
std::ostream * os_
Definition XMLValidator.h:53
void warning(const xercesc::SAXParseException &exception) override
std::string filename_
File name of validated file (for error messages)
Definition XMLValidator.h:51
bool valid_
Flag if the validated file is valid.
Definition XMLValidator.h:49
bool isValid(const std::string &filename, const std::string &schema, std::ostream &os=std::cerr)
Returns if an XML file is valid for given a schema file.
XMLValidator()
Constructor.
void fatalError(const xercesc::SAXParseException &exception) override
void error(const xercesc::SAXParseException &exception) override
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19