System.Xml.XmlReader.MoveToAttribute Method

When overridden in a derived class, moves to the attribute with the specified XmlReader.LocalName and XmlReader.NamespaceURI.

Syntax

public abstract bool MoveToAttribute (string name, string ns)

Parameters

name
The local name of the attribute.
ns
The namespace URI of the attribute.

Returns

true if the attribute is found; otherwise, false. If false, the reader's position does not change.

Remarks

After calling MoveToAttribute, the XmlReader.Name, XmlReader.NamespaceURI, and XmlReader.Prefix properties reflect the properties of that attribute.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0