OpenXmlPart.ValidateXml Método

Definición

Sobrecargas

ValidateXml(String, ValidationEventHandler)
Obsoletos.

Valida el contenido XML de la parte mediante el esquema especificado.

ValidateXml(XmlSchemaSet, ValidationEventHandler)
Obsoletos.

Valida el contenido XML de la parte mediante el esquema especificado.

ValidateXml(String, ValidationEventHandler)

Precaución

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

Valida el contenido XML de la parte mediante el esquema especificado.

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);

Parámetros

schemaFile
String

Esquema XML que se va a usar.

validationEventHandler
ValidationEventHandler

ValidationEventHandler para eventos de validación.

Atributos

Se aplica a

DocumentFormat.OpenXml 2.20.0 e outras versións
Produto Versións (Obsoleto)
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)

Precaución

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

Valida el contenido XML de la parte mediante el esquema especificado.

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);

Parámetros

schemas
XmlSchemaSet

Conjunto de esquemas XML que se van a usar.

validationEventHandler
ValidationEventHandler

ValidationEventHandler para eventos de validación.

Atributos

Se aplica a

DocumentFormat.OpenXml 2.20.0 e outras versións
Produto Versións (Obsoleto)
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)