#include <OpenMS/FORMAT/XMLValidator.h>
Validates an XML file against a given schema.
Public Member Functions | |
XMLValidator () | |
Constructor. | |
bool | isValid (const String &filename, const String &schema) throw (Exception::FileNotFound, Exception::ParseError) |
Returns if an XML file is valid for given a schema file. | |
Protected Member Functions | |
Implementation of Xerces ErrorHandler methods | |
virtual void | warning (const xercesc::SAXParseException &exception) |
virtual void | error (const xercesc::SAXParseException &exception) |
virtual void | fatalError (const xercesc::SAXParseException &exception) |
virtual void | resetErrors () |
Protected Attributes | |
bool | valid_ |
XMLValidator | ( | ) |
Constructor.
bool isValid | ( | const String & | filename, | |
const String & | schema | |||
) | throw (Exception::FileNotFound, Exception::ParseError) |
Returns if an XML file is valid for given a schema file.
virtual void warning | ( | const xercesc::SAXParseException & | exception | ) | [protected, virtual] |
virtual void error | ( | const xercesc::SAXParseException & | exception | ) | [protected, virtual] |
virtual void fatalError | ( | const xercesc::SAXParseException & | exception | ) | [protected, virtual] |
virtual void resetErrors | ( | ) | [protected, virtual] |
bool valid_ [protected] |
Generated Tue Apr 1 15:36:45 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |