<xml></xml>

Saxon API for .NET |

# SchemaManager.Compile Method

Compile a schema document, located at an XdmNode. This may be a document node whose child is an `xs:schema` element, or it may be the `xs:schema` element itself. The resulting schema components are added to the cache.

#### Overload List

Compile a schema document, located at an XdmNode. This may be a document node whose child is an `xs:schema` element, or it may be the `xs:schema` element itself. The resulting schema components are added to the cache.

> public void Compile(XdmNode);

Compile a schema supplied as a Stream. The resulting schema components are added to the cache.

> public void Compile(Stream,Uri);

Compile a schema, retrieving the source using a URI. The resulting schema components are added to the cache.

> public void Compile(Uri);

Compile a schema, delivered using an XmlReader. The resulting schema components are added to the cache.

> public void Compile(XmlReader);

#### See Also

SchemaManager Class | Saxon.Api Namespace