OpenXmlPart.ValidateXml Method

Definition

Overloads

ValidateXml(String, ValidationEventHandler)
Obsolete.

Validates the XML content of the part by using the specified schema.

ValidateXml(XmlSchemaSet, ValidationEventHandler)
Obsolete.

Validates the XML content of the part by using the specified schema.

ValidateXml(String, ValidationEventHandler)

Caution

This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.

Validates the XML content of the part by using the specified schema.

C#
public void ValidateXml (string schemaFile, System.Xml.Schema.ValidationEventHandler validationEventHandler);
C#
[System.Obsolete("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", false)]
public void ValidateXml (string schemaFile, System.Xml.Schema.ValidationEventHandler validationEventHandler);

Parameters

schemaFile
String

The XML schema to be used.

validationEventHandler
ValidationEventHandler

ValidationEventHandler for validation events.

Attributes

Applies to

DocumentFormat.OpenXml 2.20.0 and other versions
Product Versions (Obsolete)
DocumentFormat.OpenXml (2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0)

ValidateXml(XmlSchemaSet, ValidationEventHandler)

Caution

This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.

Validates the XML content of the part by using the specified schema.

C#
public void ValidateXml (System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.ValidationEventHandler validationEventHandler);
C#
[System.Obsolete("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", false)]
public void ValidateXml (System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.ValidationEventHandler validationEventHandler);

Parameters

schemas
XmlSchemaSet

The set of XML schemas to be used.

validationEventHandler
ValidationEventHandler

ValidationEventHandler for validation events.

Attributes

Applies to

DocumentFormat.OpenXml 2.20.0 and other versions
Product Versions (Obsolete)
DocumentFormat.OpenXml (2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0)