Mono Class Library: System.Xml.XPath.XPathNavigator Overview | Members

System.Xml.XPath.XPathNavigator.MoveToId Method

Moves the current node to the node that matches with the specified ID. [Edit]

public abstract bool MoveToId (string id)

Parameters

id
A string that represents the target node ID. [Edit]

Returns

True if the current node was successfully moved; Otherwise False. [Edit]

Remarks

When System.Xml.XmlDocument is used as the source stem.Xml.XPath.IXPathNavigable, only document type definition is required to support node ID. When System.Xml.XPath.XPathDocument is used, then that XPathDocument must be created with System.Xml.XmlValidatingReader or any other constructor parameter than System.Xml.XmlReader. [Edit]

Requirements

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