Validator for XML files. More...
#include <OpenMS/FORMAT/VALIDATORS/XMLValidator.h>
 
  
 | Public Member Functions | |
| XMLValidator () | |
| Constructor.  More... | |
| bool | isValid (const String &filename, const String &schema, std::ostream &os=std::cerr) | 
| Returns if an XML file is valid for given a schema file.  More... | |
| 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_ | 
| Flag if the validated file is valid.  More... | |
| String | filename_ | 
| File name of validated file (for error messages)  More... | |
| std::ostream * | os_ | 
Validator for XML files.
Validates an XML file against a given schema.
| XMLValidator | ( | ) | 
Constructor.
| 
 | protectedvirtual | 
| 
 | protectedvirtual | 
Returns if an XML file is valid for given a schema file.
Error messages are printed to the error stream, unless redirected with the attribute os .
| Exception::FileNotFound | is thrown if the file cannot be found | 
| Exception::ParseError | is thrown if the parser could not be initialized | 
| 
 | protectedvirtual | 
| 
 | protectedvirtual | 
| 
 | protected | 
| 
 | protected | 
Flag if the validated file is valid.
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:31 using doxygen 1.8.5 |