System.Xml.Serialization.XmlSchemas.Compile Method

Processes the element and attribute names in the XML schemas and, optionally, validates the XML schemas.

Syntax

public void Compile (System.Xml.Schema.ValidationEventHandler handler, bool fullCompile)

Parameters

handler
A System.Xml.Schema.ValidationEventHandler that specifies the callback method that handles errors and warnings during XML Schema validation, if the strict parameter is set to true.
fullCompile
true to validate the XML schemas in the collection using the XmlSchemas.Compile(System.Xml.Schema.ValidationEventHandler, bool) method of the System.Xml.Serialization.XmlSchemas class; otherwise, false.

Remarks

The following list identifies situations in which the XmlSchemas.Compile(System.Xml.Schema.ValidationEventHandler, bool) method is called:

Instead of calling the XmlSchemas.Compile(System.Xml.Schema.ValidationEventHandler, bool) method directly, use the previously mentioned classes or tools.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0