System.Xml.XPath.XPathNavigator.ReplaceRange Method

Replaces a range of sibling nodes from the current node to the node specified.

Syntax

public virtual System.Xml.XmlWriter ReplaceRange (XPathNavigator lastSiblingToReplace)

Parameters

lastSiblingToReplace
An System.Xml.XPath.XPathNavigator positioned on the last sibling node in the range to replace.

Returns

An System.Xml.XmlWriter object used to specify the replacement range.

Remarks

The XPathNavigator.ReplaceRange(XPathNavigator) method replaces a range of sibling nodes from the current node the System.Xml.XPath.XPathNavigator is positioned on (inclusive) to the node specified by the System.Xml.XPath.XPathNavigator parameter (inclusive).

Note:

The replacement range is not inserted until the System.Xml.XmlWriter.Close method of the System.Xml.XmlWriter object is called.

Requirements

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