To create a new element node, include all XML syntax in the XML string parameter. The string for a new book node is InsertAfter("<book/>"). The string for inserting the text "book" after the current node's text node is InsertAfter("book"). If the XML string contains multiple nodes, all nodes are added.
The following are important notes to consider when using the XPathNavigator.InsertAfter(string) method.
The XPathNavigator.InsertAfter(string) method is valid only when the System.Xml.XPath.XPathNavigator is positioned on an element, text, processing instruction, or comment node.
The XPathNavigator.InsertAfter(string) method does not affect the position of the System.Xml.XPath.XPathNavigator.