SaxonC 13.0.0
Saxon Processor library for C/C++, PHP and Python
Loading...
Searching...
No Matches
XsdSchema Class Reference

#include <XsdSchema.h>

Public Member Functions

 ~XsdSchema ()
 Destructor method to clean up the XsdScherma.
SchemaValidatornewValidator ()
XsdSchemacombine (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

Detailed Description

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.

Member Function Documentation

◆ combine()

XsdSchema * XsdSchema::combine ( XsdSchema * other)

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.

Parameters
otherthe other schema to combine with this one.
Returns
the combined schema, assuming the two schemas are compatible
Exceptions
SaxonApiExceptionif the two schemas cannot be combined, for example because they contain components with duplicated names
Since
13.0

◆ exportComponents()

void XsdSchema::exportComponents ( const char * filename)

Export a precompiled Schema Component Model containing all the components (except built-in components) in this schema.

Parameters
destinationthe destination to recieve the precompiled Schema Component Model in the form of an XML document
Exceptions
SaxonApiExceptionif a failure occurs writing the schema components to the supplied destination

The documentation for this class was generated from the following files: