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.

public void ValidateXml (string schemaFile, System.Xml.Schema.ValidationEventHandler validationEventHandler);
[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
[<System.Obsolete("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", false)>]
member this.ValidateXml : string * System.Xml.Schema.ValidationEventHandler -> unit
Public Sub ValidateXml (schemaFile As String, validationEventHandler As ValidationEventHandler)

Parameters

schemaFile
String

The XML schema to be used.

validationEventHandler
ValidationEventHandler

ValidationEventHandler for validation events.

Attributes

Applies to

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.

public void ValidateXml (System.Xml.Schema.XmlSchemaSet schemas, System.Xml.Schema.ValidationEventHandler validationEventHandler);
[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
[<System.Obsolete("This functionality is obsolete and will be removed from future version release. Please see OpenXmlValidator class for supported validation functionality.", false)>]
member this.ValidateXml : System.Xml.Schema.XmlSchemaSet * System.Xml.Schema.ValidationEventHandler -> unit
Public Sub ValidateXml (schemas As XmlSchemaSet, validationEventHandler As ValidationEventHandler)

Parameters

schemas
XmlSchemaSet

The set of XML schemas to be used.

validationEventHandler
ValidationEventHandler

ValidationEventHandler for validation events.

Attributes

Applies to