libxml++: xmlpp::SchemaBase Class Reference
Base class for schemas, used for validation of XML files. More...
#include <libxml++/schemabase.h>
Inheritance diagram for xmlpp::SchemaBase:
Public Member Functions | |
SchemaBase () noexcept | |
~SchemaBase () override | |
virtual void | parse_document (const Document* document)=0 |
Parse a schema definition from a document. More... | |
virtual void | parse_file (const std::string& filename)=0 |
Parse a schema definition file. More... | |
virtual void | parse_memory (const ustring& contents)=0 |
Parse a schema definition from a string. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from xmlpp::NonCopyable | |
NonCopyable () noexcept | |
NonCopyable (const NonCopyable&)=delete | |
NonCopyable (NonCopyable&&)=delete | |
virtual | ~NonCopyable () |
NonCopyable& | operator= (const NonCopyable&)=delete |
NonCopyable& | operator= (NonCopyable&&)=delete |
Detailed Description
Base class for schemas, used for validation of XML files.
Constructor & Destructor Documentation
|
noexcept |
|
override |
Member Function Documentation
|
pure virtual |
Parse a schema definition from a document.
If another schema has been parsed before, that schema is replaced by the new one.
- Parameters
-
document A preparsed document tree, containing the schema definition.
- Exceptions
-
xmlpp::parse_error
Implemented in xmlpp::RelaxNGSchema, and xmlpp::XsdSchema.
|
pure virtual |
Parse a schema definition file.
If another schema has been parsed before, that schema is replaced by the new one.
- Parameters
-
filename The URL of the schema.
- Exceptions
-
xmlpp::parse_error
Implemented in xmlpp::RelaxNGSchema, and xmlpp::XsdSchema.
|
pure virtual |
Parse a schema definition from a string.
If another schema has been parsed before, that schema is replaced by the new one.
- Parameters
-
contents The schema definition as a string.
- Exceptions
-
xmlpp::parse_error
Implemented in xmlpp::RelaxNGSchema, and xmlpp::XsdSchema.