Skips validation of the current element content and prepares the System.Xml.Schema.XmlSchemaValidator object to validate content in the parent element's context.
- schemaInfo
- An System.Xml.Schema.XmlSchemaInfo object whose properties are set if the current element content is successfully skipped. This parameter can be null.
The following are important notes to consider when using the XmlSchemaValidator.SkipToEndElement(XmlSchemaInfo) method.
The XmlSchemaValidator.SkipToEndElement(XmlSchemaInfo) method skips validation of the current element content and prepares the System.Xml.Schema.XmlSchemaValidator object to validate content in the parent element's context; it is equivalent to skipping validation for all the children of the current element and then calling the erload:System.Xml.Schema.XmlSchemaValidator.ValidateEndElement method.
If the current element content is successfully skipped, the System.Xml.Schema.XmlSchemaInfo object's (if specified) XmlSchemaInfo.Validity property is set to XmlSchemaValidity.NotKnown.
No validation errors are reported on skipped content.