OpenXmlPart.ValidateXml Method (XmlSchemaSet, ValidationEventHandler)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Validates the XML content of the part according to the specified schema.

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

Syntax

'Declaration
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)
public void ValidateXml(
    XmlSchemaSet schemas,
    ValidationEventHandler validationEventHandler
)

Parameters

See Also

Reference

OpenXmlPart Class

OpenXmlPart Members

ValidateXml Overload

DocumentFormat.OpenXml.Packaging Namespace