libxml++: xmlpp::Schema Class Reference
Represents an XML Schema. More...
#include <libxml++/schema.h>
Inheritance diagram for xmlpp::Schema:

Public Member Functions | |
| Schema (_xmlSchema* schema) | |
| Create a schema from the underlying libxml schema element. More... | |
| Schema (Document* document=nullptr, bool embed=false) | |
| Create a schema from an XML document. More... | |
| ~Schema () | |
| _xmlSchema* | cobj () |
| Access the underlying libxml implementation. More... | |
| const _xmlSchema* | cobj () const |
| Access the underlying libxml implementation. More... | |
| Document* | get_document () |
| Get the schema document. More... | |
| const Document* | get_document () const |
| Get the schema document. More... | |
| Glib::ustring | get_name () const |
| Glib::ustring | get_target_namespace () const |
| Glib::ustring | get_version () const |
| virtual void | set_document (Document* document=nullptr, bool embed=false) |
| Set a new document to the schema. More... | |
Protected Member Functions | |
| virtual void | release_underlying () |
Detailed Description
Constructor & Destructor Documentation
|
explicit |
Create a schema from the underlying libxml schema element.
- Deprecated:
- Use XsdSchema instead.
|
explicit |
Create a schema from an XML document.
- Parameters
-
document XMLSchema document, nullptrto create an empty schema document.embed If true, the document will be deleted when the schema is deleted or another document is set.
- Exceptions
-
xmlpp::parse_error xmlpp::internal_error If an empty schema document can't be created.
- Deprecated:
- Use XsdSchema instead.
| xmlpp::Schema::~Schema | ( | ) |
Member Function Documentation
| _xmlSchema* xmlpp::Schema::cobj | ( | ) |
Access the underlying libxml implementation.
- Deprecated:
- Use XsdSchema::cobj() instead.
| const _xmlSchema* xmlpp::Schema::cobj | ( | ) | const |
Access the underlying libxml implementation.
- Deprecated:
- Use XsdSchema::cobj() instead.
| Document* xmlpp::Schema::get_document | ( | ) |
Get the schema document.
- Returns
- A pointer to the schema document, or
nullptrif none exists.
- Deprecated:
- There is no replacement.
| const Document* xmlpp::Schema::get_document | ( | ) | const |
Get the schema document.
- Returns
- A pointer to the schema document, or
nullptrif none exists.
- Deprecated:
- There is no replacement.
| Glib::ustring xmlpp::Schema::get_name | ( | ) | const |
- Deprecated:
- There is no replacement.
| Glib::ustring xmlpp::Schema::get_target_namespace | ( | ) | const |
- Deprecated:
- There is no replacement.
| Glib::ustring xmlpp::Schema::get_version | ( | ) | const |
- Deprecated:
- There is no replacement.
|
protectedvirtual |
|
virtual |
Set a new document to the schema.
If the old schema document is owned by the schema (embed == true), the old schema document and all its nodes are deleted.
- Parameters
-
document XMLSchema document, nullptrto create an empty schema document.embed If true, the document will be deleted when the schema is deleted or another document is set.
- Exceptions
-
xmlpp::parse_error xmlpp::internal_error If an empty schema document can't be created.
- Deprecated:
- Use XsdSchema::parse_document() instead.
