System.Xml.Schema.XmlSchema.Compile Method

Compiles the XML Schema Object Model (SOM) into schema information for validation. Used to check the syntactic and semantic structure of the programmatically built SOM. Semantic validation checking is performed during compilation.

Syntax

[System.Obsolete("Use XmlSchemaSet.Compile() instead.")]
public void Compile (ValidationEventHandler validationEventHandler)

Parameters

validationEventHandler
The validation event handler that receives information about XML Schema validation errors.

Remarks

Note:

The XmlSchema.Compile(ValidationEventHandler) method is obsolete in the Microsoft .NET Framework version 2.0 and has been replaced by the XmlSchemaSet.Compile method.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0