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

System.Xml.XPath.XPathNavigator.MoveToRoot Method

Moves the current node to the document root. This method never fails.

public virtual void MoveToRoot ()

Remarks

Even if the navigator is created from System.Xml.XmlNode, the navigator moves to the System.Xml.XmlNode.OwnerDocument, not the argument XmlNode.

Requirements

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