The System.Xml.XPath.XPathNavigator is positioned on the new node on completion of the XPathNavigator.ReplaceSelf(string) method and returns true. The System.Xml.XPath.XPathNavigator is not positioned on the new node after completion of the XPathNavigator.ReplaceSelf(string) method when the XML input is string.Empty in which case the System.Xml.XPath.XPathNavigator is either positioned on the next sibling node or the parent node if there is no next sibling node to the replaced node and the XPathNavigator.ReplaceSelf(string) returns false.
The XPathNavigator.ReplaceSelf(string) method is valid only when the System.Xml.XPath.XPathNavigator is positioned on an element, text, processing instruction, or comment node.
If the XML data string is not well-formed than an exception is thrown and the result of this method is equivalent to calling XPathNavigator.DeleteSelf on the current node.
If the XML string contains multiple nodes, all nodes are added and the System.Xml.XPath.XPathNavigator is positioned on the first node in the series of nodes.
The XPathNavigator.ReplaceSelf(string) method is not equivalent to the XPathNavigator.DeleteSelf method.