Returns an System.Xml.XmlWriter object used to create one or more new child nodes at the end of the list of child nodes of the current node.
An System.Xml.XmlWriter object used to create new child nodes at the end of the list of child nodes of the current node.
Appending child nodes adds the new nodes to the end of the list of child nodes for the current node. For example, when three child nodes exist for an element, the first appended node becomes the fourth child node. If no child nodes exist, then a new child node is created.
The following are important notes to consider when using the XPathNavigator.AppendChild method.
The new child node is not inserted until the System.Xml.XmlWriter.Close method of the System.Xml.XmlWriter object is called.
The XPathNavigator.AppendChild method is valid only when the System.Xml.XPath.XPathNavigator is positioned on the root node or an element node.
The XPathNavigator.AppendChild method does not affect the position of the System.Xml.XPath.XPathNavigator.
You can write more than one node to the writer. All nodes are appended to the end of the list of child nodes of the current node.