XmlSchema.Compile Method (ValidationEventHandler, XmlResolver)
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.
Assembly: System.Xml (in System.Xml.dll)
[ObsoleteAttribute("Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202")] public void Compile( ValidationEventHandler validationEventHandler, XmlResolver resolver )
If the SOM references other namespaces through the import or include elements, the XmlResolver is used to resolve these references. If the resolver is set to null, this indicates that the user does not care about resolving import or include elements. In this case, the references are not resolved. The resolver is not cached after the Compile method completes.
The XmlSchemaSet.Compile method.method is obsolete in the Microsoft .NET Framework version 2.0 and has been replaced by the
Available since 1.1