Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

XMLValidator Class Reference
[File IO]

#include <OpenMS/FORMAT/XMLValidator.h>

Inheritance diagram for XMLValidator:

xercesc::ErrorHandler

List of all members.


Detailed Description

Validator for XML files.

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_


Constructor & Destructor Documentation

XMLValidator (  ) 

Constructor.


Member Function Documentation

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]


Member Data Documentation

bool valid_ [protected]


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:45 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1