Поделиться через


OpenXmlPart.ValidateXml Method (XmlSchemaSet, ValidationEventHandler)

NOTE: This API is now obsolete.

Validate the xml content of the part according the specified schema.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ObsoleteAttribute("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.",  _
    False)> _
Public Sub ValidateXml ( _
    schemas As XmlSchemaSet, _
    validationEventHandler As ValidationEventHandler _
)
'Usage
Dim instance As OpenXmlPart
Dim schemas As XmlSchemaSet
Dim validationEventHandler As ValidationEventHandler

instance.ValidateXml(schemas, validationEventHandler)
[ObsoleteAttribute("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", 
    false)]
public void ValidateXml(
    XmlSchemaSet schemas,
    ValidationEventHandler validationEventHandler
)

Parameters

See Also

Reference

OpenXmlPart Class

OpenXmlPart Members

ValidateXml Overload

DocumentFormat.OpenXml.Packaging Namespace