_CustomXMLSchemaCollection.Validate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether the schemas in a schema collection are valid (conforms to the syntactic rules of XML and the rules for a specified vocabulary; a standard for structuring XML).
public:
bool Validate();
public bool Validate ();
abstract member Validate : unit -> bool
Public Function Validate () As Boolean
Returns
Boolean
Remarks
Note: References to DTDs from custom XML parts are not supported. DTD references in custom XML parts will not resolve, and custom XML parts containing DTD references generate an exception when an attempt is made to save the file's content to a flat XML file.
In addition to determining whether the schemas are valid, this method also traverses the include statements for each schema in the collection and adds the referenced schemas to the source schema.