XmlSchemaValidator.SkipToEndElement(XmlSchemaInfo) 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.
Skips validation of the current element content and prepares the XmlSchemaValidator object to validate content in the parent element's context.
public:
void SkipToEndElement(System::Xml::Schema::XmlSchemaInfo ^ schemaInfo);
public void SkipToEndElement (System.Xml.Schema.XmlSchemaInfo? schemaInfo);
public void SkipToEndElement (System.Xml.Schema.XmlSchemaInfo schemaInfo);
member this.SkipToEndElement : System.Xml.Schema.XmlSchemaInfo -> unit
Public Sub SkipToEndElement (schemaInfo As XmlSchemaInfo)
Parameters
- schemaInfo
- XmlSchemaInfo
An XmlSchemaInfo object whose properties are set if the current element content is successfully skipped. This parameter can be null
.
Exceptions
The SkipToEndElement(XmlSchemaInfo) method was not called in the correct sequence. For example, calling SkipToEndElement(XmlSchemaInfo) after calling SkipToEndElement(XmlSchemaInfo).
Remarks
The following are important notes to consider when using the SkipToEndElement method.
The SkipToEndElement method skips validation of the current element content and prepares the 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 ValidateEndElement method.
If the current element content is successfully skipped, the XmlSchemaInfo object's (if specified) Validity property is set to NotKnown.
Note
No validation errors are reported on skipped content.