AppendChild()

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

ExceptionDescription
InvalidOperationExceptionThe current node the XPathNavigator is positioned on is not the root node or an element node.
NotSupportedExceptionThe 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

ParameterTypeDescription
newChildStringThe XML data string for the new child node.

Exceptions

ExceptionDescription
ArgumentNullExceptionThe XML data string parameter is nullptr.
InvalidOperationExceptionThe current node the XPathNavigator is positioned on is not the root node or an element node.
NotSupportedExceptionThe XPathNavigator does not support editing.
XmlExceptionThe 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

ParameterTypeDescription
newChildSharedPtr<XmlReader>An XmlReader object positioned on the XML data for the new child node.

Exceptions

ExceptionDescription
ArgumentExceptionThe XmlReader object is in an error state or closed.
ArgumentNullExceptionThe XmlReader object parameter is nullptr.
InvalidOperationExceptionThe current node the XPathNavigator is positioned on is not the root node or an element node.
NotSupportedExceptionThe XPathNavigator does not support editing.
XmlExceptionThe 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

ParameterTypeDescription
newChildSharedPtr<XPathNavigator>An XPathNavigator object positioned on the node to add as the new child node.

Exceptions

ExceptionDescription
ArgumentNullExceptionThe XPathNavigator object parameter is nullptr.
InvalidOperationExceptionThe current node the XPathNavigator is positioned on is not the root node or an element node.
NotSupportedExceptionThe XPathNavigator does not support editing.

See Also