Creates a new sibling node after the currently selected node using the XML contents of the System.Xml.XmlReader object specified.
- newSibling
- An System.Xml.XmlReader object positioned on the XML data for the new sibling node.
The following are important notes to consider when using the XPathNavigator.InsertAfter(System.Xml.XmlReader) 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(System.Xml.XmlReader) method is valid only when the System.Xml.XPath.XPathNavigator is positioned on an element, text, processing instruction, or comment node.
The XPathNavigator.InsertAfter(System.Xml.XmlReader) method does not affect the position of the System.Xml.XPath.XPathNavigator.