Base class for schema validators.
More...
#include <libxml++/validators/schemavalidatorbase.h>
Base class for schema validators.
- Since libxml++ 2.38:
§ SchemaValidatorBase()
xmlpp::SchemaValidatorBase::SchemaValidatorBase |
( |
| ) |
|
|
noexcept |
§ ~SchemaValidatorBase()
xmlpp::SchemaValidatorBase::~SchemaValidatorBase |
( |
| ) |
|
|
override |
§ initialize_context()
void xmlpp::SchemaValidatorBase::initialize_context |
( |
| ) |
|
|
overrideprotectedvirtual |
§ operator bool()
virtual xmlpp::SchemaValidatorBase::operator bool |
( |
| ) |
const |
|
explicitoverridepure virtualnoexcept |
§ parse_document()
virtual void xmlpp::SchemaValidatorBase::parse_document |
( |
const Document* |
document | ) |
|
|
pure virtual |
Parse a schema definition from a document.
If the validator already contains a schema, that schema is released (deleted if the validator owns the schema).
- Parameters
-
document | A preparsed document tree, containing the schema definition. |
- Exceptions
-
Implemented in xmlpp::RelaxNGValidator, and xmlpp::XsdValidator.
§ parse_file()
void xmlpp::SchemaValidatorBase::parse_file |
( |
const std::string & |
filename | ) |
|
|
overridepure virtual |
Parse a schema definition file.
If the validator already contains a schema, that schema is released (deleted if the validator owns the schema).
- Parameters
-
filename | The URL of the schema. |
- Exceptions
-
Implements xmlpp::Validator.
Implemented in xmlpp::RelaxNGValidator, and xmlpp::XsdValidator.
§ parse_memory()
void xmlpp::SchemaValidatorBase::parse_memory |
( |
const Glib::ustring & |
contents | ) |
|
|
overridepure virtual |
Parse a schema definition from a string.
If the validator already contains a schema, that schema is released (deleted if the validator owns the schema).
- Parameters
-
contents | The schema definition as a string. |
- Exceptions
-
Implements xmlpp::Validator.
Implemented in xmlpp::RelaxNGValidator, and xmlpp::XsdValidator.
§ release_underlying()
void xmlpp::SchemaValidatorBase::release_underlying |
( |
| ) |
|
|
overrideprotectedvirtual |
§ validate() [1/2]
void xmlpp::SchemaValidatorBase::validate |
( |
const Document* |
document | ) |
|
|
overridepure virtual |
§ validate() [2/2]
virtual void xmlpp::SchemaValidatorBase::validate |
( |
const std::string & |
filename | ) |
|
|
pure virtual |