ReplaceRange()

XPathNavigator::ReplaceRange(SharedPtr<XPathNavigator>) method

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

virtual SharedPtr<XmlWriter> System::Xml::XPath::XPathNavigator::ReplaceRange(SharedPtr<XPathNavigator> lastSiblingToReplace)

Arguments

ParameterTypeDescription
lastSiblingToReplaceSharedPtr<XPathNavigator>An XPathNavigator positioned on the last sibling node in the range to replace.

Return Value

An XmlWriter object used to specify the replacement range.

Exceptions

ExceptionDescription
ArgumentNullExceptionThe XPathNavigator specified is nullptr.
NotSupportedExceptionThe XPathNavigator does not support editing.
InvalidOperationExceptionThe last node to replace specified is not a valid sibling node of the current node.

See Also