System.Xml.Schema.XmlSchemaValidator.ValidateElement Method

Validates the element in the current context with the xsi:Type, xsi:Nil, xsi:SchemaLocation, and xsi:NoNamespaceSchemaLocation attribute values specified.

Syntax

public void ValidateElement (string localName, string namespaceUri, XmlSchemaInfo schemaInfo, string xsiType, string xsiNil, string xsiSchemaLocation, string xsiNoNamespaceSchemaLocation)

Parameters

localName
The local name of the element to validate.
namespaceUri
The namespace URI of the element to validate.
schemaInfo
An System.Xml.Schema.XmlSchemaInfo object whose properties are set on successful validation of the element's name. This parameter can be null.
xsiType
The xsi:Type attribute value of the element. This parameter can be null.
xsiNil
The xsi:Nil attribute value of the element. This parameter can be null.
xsiSchemaLocation
The xsi:SchemaLocation attribute value of the element. This parameter can be null.
xsiNoNamespaceSchemaLocation
The xsi:NoNamespaceSchemaLocation attribute value of the element. This parameter can be null.

Remarks

The following are important notes to consider when using the XmlSchemaValidator.ValidateElement(string, string, XmlSchemaInfo, string, string, string, string) method.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0