Saxon.Api

 

 

Saxon.Api

Class XsdSchema


public abstract class XsdSchema

An XsdSchema object represents a compiled XSD schema. It is always constructed using the Compile methods in the XsdCompiler class.

The abstract XsdSchema class is included in all Saxon editions, but the concrete subclass that represents a real schema is available only in Saxon-EE.

Property Summary

 net.sf.saxon.type.Schema UnderlyingSchema

Trapdoor method to obtain access to the underlying implementation. Details may not be stable between releases.

 

Method Summary

 XsdSchema Combine (XsdSchema other)

Combine this schema with another to create a new XsdSchema Neither of the input schemas is modified. The two schemas must be compatible, for example they must not contain conflicting definitions with the same name.

 void ExportComponents (IDestination destination)

Export the contents of this schema to an SCM file. The destination will typically be a Serializer. The resulting SCM file can be used to reconstitute the compiled schema by calling XsdCompiler.ImportComponents.

 SchemaValidator NewValidator ()

Obtain a SchemaValidator that can be used to validate instance documents against this schema.

 

Property Detail

UnderlyingSchema

public abstract net.sf.saxon.type.Schema UnderlyingSchema {get; }

Trapdoor method to obtain access to the underlying implementation. Details may not be stable between releases.

Method Detail

Combine

public abstract XsdSchema Combine(XsdSchema other)

Combine this schema with another to create a new XsdSchema Neither of the input schemas is modified. The two schemas must be compatible, for example they must not contain conflicting definitions with the same name.

Parameters:

other - The other schema

ExportComponents

public abstract void ExportComponents(IDestination destination)

Export the contents of this schema to an SCM file. The destination will typically be a Serializer. The resulting SCM file can be used to reconstitute the compiled schema by calling XsdCompiler.ImportComponents.

Parameters:

destination - The destination for the SCM file

NewValidator

public abstract SchemaValidator NewValidator()

Obtain a SchemaValidator that can be used to validate instance documents against this schema.