OpenXmlPart.ValidateXml Method (Microsoft.Office.DocumentFormat.OpenXml.Packaging)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Validate the xml content of the part according the specified schema.
Namespace: Microsoft.Office.DocumentFormat.OpenXml.Packaging
Assembly: Microsoft.Office.DocumentFormat.OpenXml (in microsoft.office.documentformat.openxml.dll)
Syntax
'Declaration
Public Sub ValidateXml ( _
schemaFile As String, _
validationEventHandler As ValidationEventHandler _
)
'Usage
Dim instance As OpenXmlPart
Dim schemaFile As String
Dim validationEventHandler As ValidationEventHandler
instance.ValidateXml(schemaFile, validationEventHandler)
public void ValidateXml (
string schemaFile,
ValidationEventHandler validationEventHandler
)
Parameters
- schemaFile
The XML schema to be used.
- validationEventHandler
ValidationEventHandler for validation events.
See Also
Reference
OpenXmlPart Class
OpenXmlPart Members
Microsoft.Office.DocumentFormat.OpenXml.Packaging Namespace