System.Xml.Schema.XmlSchemaValidator.ValidateElement Method

Validates the element in the current context.

Syntax

public void ValidateElement (string localName, string namespaceUri, XmlSchemaInfo schemaInfo)

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.

Remarks

The following are important notes to consider when using the XmlSchemaValidator.ValidateElement(string, string, XmlSchemaInfo) 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