OpenXmlPart.ValidateXml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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