Saxon API for .NET

SchemaManager.Compile Method (XmlReader)

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

public void Compile(
   XmlReader reader
);

Remarks

The XmlReader is responsible for parsing the document; this method builds a tree representation of the document (in an internal Saxon format) and compiles it. If the XmlReader is an XmlTextReader, Saxon will set its Normalization property to true, and will wrap it in a (non-validating) XmlValidatingReader to ensure that entity references are expanded.

See Also

SchemaManager Class | Saxon.Api Namespace | SchemaManager.Compile Overload List