Validator for XML files.
More...
#include <OpenMS/FORMAT/VALIDATORS/XMLValidator.h>
List of all members.
Public Member Functions |
| | XMLValidator () |
| | Constructor.
|
| 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.
|
Protected Member Functions |
|
|
| 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.
|
| String | filename_ |
| | File name of validated file (for error messages).
|
| std::ostream * | os_ |
Detailed Description
Validator for XML files.
Validates an XML file against a given schema.
Constructor & Destructor Documentation
Member Function Documentation
| virtual void error |
( |
const xercesc::SAXParseException & |
exception |
) |
[protected, virtual] |
| virtual void fatalError |
( |
const xercesc::SAXParseException & |
exception |
) |
[protected, virtual] |
| 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.
Error messages are printed to the error stream, unless redirected with the attribute os .
- Exceptions:
-
| virtual void resetErrors |
( |
|
) |
[protected, virtual] |
| virtual void warning |
( |
const xercesc::SAXParseException & |
exception |
) |
[protected, virtual] |
Member Data Documentation
File name of validated file (for error messages).
std::ostream* os_ [protected] |
Flag if the validated file is valid.
| OpenMS / TOPP release 1.10.0 |
Documentation generated on Thu Mar 7 2013 09:42:54 using doxygen 1.7.1 |