XML Schema Validator.
More...
#include <libxml++/validators/schemavalidator.h>
xmlpp::SchemaValidator::SchemaValidator |
( |
| ) |
|
xmlpp::SchemaValidator::SchemaValidator |
( |
const Glib::ustring & |
file | ) |
|
|
explicit |
Create a validator and parse a schema definition file immediately.
- Parameters
-
file | The URL of the schema. |
- Exceptions
-
- Deprecated:
- Use XsdValidator instead.
xmlpp::SchemaValidator::SchemaValidator |
( |
Document& |
document | ) |
|
|
explicit |
Create a validator and parse a schema definition document immediately.
- Parameters
-
document | A preparsed document tree, containing the schema definition. |
- Note
- The document may be modified during the parsing process.
- Exceptions
-
- Deprecated:
- Use XsdValidator instead.
xmlpp::SchemaValidator::SchemaValidator |
( |
Schema* |
schema | ) |
|
|
explicit |
Create a schema validator.
- Parameters
-
schema | A pointer to the XML schema to use when validating XML documents. The validator does not take ownership of the schema. The caller must guarantee that the schema exists as long as the validator keeps a pointer to it. The caller is responsible for deleting the schema when it's no longer needed. |
- Deprecated:
- Use XsdValidator instead.
xmlpp::SchemaValidator::~SchemaValidator |
( |
| ) |
|
|
override |
Schema* xmlpp::SchemaValidator::get_schema |
( |
| ) |
|
const Schema* xmlpp::SchemaValidator::get_schema |
( |
| ) |
const |
void xmlpp::SchemaValidator::initialize_valid |
( |
| ) |
|
|
overrideprotectedvirtual |
xmlpp::SchemaValidator::operator bool |
( |
| ) |
const |
void xmlpp::SchemaValidator::parse_context |
( |
_xmlSchemaParserCtxt * |
context | ) |
|
|
protected |
virtual void xmlpp::SchemaValidator::parse_document |
( |
Document& |
document | ) |
|
|
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. |
- Note
- The document may be modified during the parsing process.
- Exceptions
-
- Deprecated:
- Use XsdValidator::parse_document() instead.
virtual void xmlpp::SchemaValidator::parse_file |
( |
const Glib::ustring & |
filename | ) |
|
|
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
-
- Deprecated:
- Use XsdValidator::parse_file() instead.
virtual void xmlpp::SchemaValidator::parse_memory |
( |
const Glib::ustring & |
contents | ) |
|
|
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
-
- Deprecated:
- Use XsdValidator::parse_memory() instead.
void xmlpp::SchemaValidator::release_underlying |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual void xmlpp::SchemaValidator::set_schema |
( |
Schema* |
schema | ) |
|
|
virtual |
Set a schema.
If the validator already contains a schema, that schema is released (deleted if the validator owns the schema).
- Parameters
-
schema | A pointer to the XML schema to use when validating XML documents. The validator does not take ownership of the schema. The caller must guarantee that the schema exists as long as the validator keeps a pointer to it. The caller is responsible for deleting the schema when it's no longer needed. |
- Deprecated:
- Use XsdValidator::set_schema() instead.
bool xmlpp::SchemaValidator::validate |
( |
const Document* |
doc | ) |
|
bool xmlpp::SchemaValidator::validate |
( |
const Glib::ustring & |
file | ) |
|
_xmlSchemaValidCtxt* xmlpp::SchemaValidator::ctxt_ |
|
protected |
bool xmlpp::SchemaValidator::embbeded_shema_ |
|
protected |
Schema* xmlpp::SchemaValidator::schema_ |
|
protected |