![]() |
SaxonC 13.0.0
Saxon Processor library for C/C++, PHP and Python
|
#include <XsdSchema.h>
Public Member Functions | |
| ~XsdSchema () | |
| Destructor method to clean up the XsdScherma. | |
| SchemaValidator * | newValidator () |
| XsdSchema * | combine (XsdSchema *other) |
| Combine this schema with another, to form a new combined schema. | |
| int64_t | getUnderlyingSchema () |
| Get the underlying implementation-level Schema. | |
| void | exportComponents (const char *filename) |
| Export a precompiled Schema Component Model containing all the components (except built-in components) in this schema. | |
Friends | |
| class | SchemaValidator |
| class | XsdCompiler |
This class represents an XSD Schema - that is, a set of schema components, typically resulting from compiling a collection of one or more source schema documents.
The class exists in all Saxon editions as an abstract place-holder class, but concrete implementations exist only in SaxonC-EE.
Combine this schema with another, to form a new combined schema.
Note: in relatively unusual circumstances, a document that is valid against one of the two input schemas might not be valid against the combined schema. For example, if the first schema has a wildcard with processContents="lax" then an element might be laxly validated when assessed using that schema, but strictly validated when assessed against the combined schema; and strict validation may fail while lax validation succeeded.
| other | the other schema to combine with this one. |
| SaxonApiException | if the two schemas cannot be combined, for example because they contain components with duplicated names |
| void XsdSchema::exportComponents | ( | const char * | filename | ) |
Export a precompiled Schema Component Model containing all the components (except built-in components) in this schema.
| destination | the destination to recieve the precompiled Schema Component Model in the form of an XML document |
| SaxonApiException | if a failure occurs writing the schema components to the supplied destination |