OpenXmlPart.ValidateXml OpenXmlPart.ValidateXml Method

Definition

Overloads

ValidateXml(String, ValidationEventHandler) ValidateXml(String, ValidationEventHandler)

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

ValidateXml(XmlSchemaSet, ValidationEventHandler) ValidateXml(XmlSchemaSet, ValidationEventHandler)

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

ValidateXml(String, ValidationEventHandler) ValidateXml(String, ValidationEventHandler)

Warning

This API is now obsolete.

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

[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);
member this.ValidateXml : string * System.Xml.Schema.ValidationEventHandler -> unit

Parameters

schemaFile
String String

The XML schema to be used.

validationEventHandler
ValidationEventHandler ValidationEventHandler

ValidationEventHandler for validation events.

ValidateXml(XmlSchemaSet, ValidationEventHandler) ValidateXml(XmlSchemaSet, ValidationEventHandler)

Warning

This API is now obsolete.

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

[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);
member this.ValidateXml : System.Xml.Schema.XmlSchemaSet * System.Xml.Schema.ValidationEventHandler -> unit

Parameters

schemas
XmlSchemaSet XmlSchemaSet

The set of XML schemas to be used.

validationEventHandler
ValidationEventHandler ValidationEventHandler

ValidationEventHandler for validation events.

Applies to