<xml></xml>

Saxon API for .NET |

# SchemaManager Class

A `SchemaManager` is responsible for compiling schemas and maintaining a cache of compiled schemas that can be used for validating instance documents.

For a list of all members of this type, see SchemaManager Members.

System.Object
SchemaManager

public class SchemaManager

#### Remarks

To obtain a `SchemaManager`, use the `SchemaManager` property of the `Processor` object.

In a schema-aware Processor there is exactly one `SchemaManager` (in a non-schema-aware Processor there is none).

The cache of compiled schema definitions can include only one schema component (for example a type, or an element declaration) with any given name. An attempt to compile two different schemas in the same namespace will usually therefore fail.

As soon as a type definition or element declaration is used for the first time in a validation episode, it is marked as being "sealed": this prevents subsequent modifications to the component. Examples of modifications that are thereby disallowed include adding to the substitution group of an existing element declaration, adding subtypes to an existing type, or redefining components using <xs:redefine>

#### Requirements

Namespace: Saxon.Api

Assembly: saxon8api (in saxon8api.netmodule)

#### See Also

SchemaManager Members | Saxon.Api Namespace