XPathNavigator::AppendChild() method
Returns an XmlWriter object used to create one or more new child nodes at the end of the list of child nodes of the current node.
virtual SharedPtr<XmlWriter> System::Xml::XPath::XPathNavigator::AppendChild()
Return Value
An XmlWriter object used to create new child nodes at the end of the list of child nodes of the current node.
Exceptions
| Exception | Description |
|---|
| InvalidOperationException | The current node the XPathNavigator is positioned on is not the root node or an element node. |
| NotSupportedException | The XPathNavigator does not support editing. |
XPathNavigator::AppendChild(String) method
Creates a new child node at the end of the list of child nodes of the current node using the XML data string specified.
virtual void System::Xml::XPath::XPathNavigator::AppendChild(String newChild)
Arguments
| Parameter | Type | Description |
|---|
| newChild | String | The XML data string for the new child node. |
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | The XML data string parameter is nullptr. |
| InvalidOperationException | The current node the XPathNavigator is positioned on is not the root node or an element node. |
| NotSupportedException | The XPathNavigator does not support editing. |
| XmlException | The XML data string parameter is not well-formed. |
XPathNavigator::AppendChild(SharedPtr<XmlReader>) method
Creates a new child node at the end of the list of child nodes of the current node using the XML contents of the XmlReader object specified.
virtual void System::Xml::XPath::XPathNavigator::AppendChild(SharedPtr<XmlReader> newChild)
Arguments
Exceptions
| Exception | Description |
|---|
| ArgumentException | The XmlReader object is in an error state or closed. |
| ArgumentNullException | The XmlReader object parameter is nullptr. |
| InvalidOperationException | The current node the XPathNavigator is positioned on is not the root node or an element node. |
| NotSupportedException | The XPathNavigator does not support editing. |
| XmlException | The XML contents of the XmlReader object parameter is not well-formed. |
XPathNavigator::AppendChild(SharedPtr<XPathNavigator>) method
Creates a new child node at the end of the list of child nodes of the current node using the nodes in the XPathNavigator specified.
virtual void System::Xml::XPath::XPathNavigator::AppendChild(SharedPtr<XPathNavigator> newChild)
Arguments
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | The XPathNavigator object parameter is nullptr. |
| InvalidOperationException | The current node the XPathNavigator is positioned on is not the root node or an element node. |
| NotSupportedException | The XPathNavigator does not support editing. |
See Also