Creates a new sibling node after the currently selected node using the nodes in the System.Xml.XPath.XPathNavigator object specified.
- newSibling
- An System.Xml.XPath.XPathNavigator object positioned on the node to add as the new sibling node.
The following are important notes to consider when using the XPathNavigator.InsertAfter(XPathNavigator) method.
If the System.Xml.XmlReader object is positioned over a sequence of XML nodes, all the nodes in the sequence are added.
The XPathNavigator.InsertAfter(XPathNavigator) method is valid only when the System.Xml.XPath.XPathNavigator is positioned on an element, text, processing instruction, or comment node.
The XPathNavigator.InsertAfter(XPathNavigator) method does not affect the position of the System.Xml.XPath.XPathNavigator.