PrependChildElement()
Contents
[
Hide
]XPathNavigator::PrependChildElement(String, String, String, String) method
Creates a new child element at the beginning of the list of child nodes of the current node using the namespace prefix, local name, and namespace URI specified with the value specified.
virtual void System::Xml::XPath::XPathNavigator::PrependChildElement(String prefix, String localName, String namespaceURI, String value)
Arguments
| Parameter | Type | Description |
|---|---|---|
| prefix | String | The namespace prefix of the new child element (if any). |
| localName | String | The local name of the new child element (if any). |
| namespaceURI | String | The namespace URI of the new child element (if any). String::Empty and nullptr are equivalent. |
| value | String | The value of the new child element. If String::Empty or nullptr are passed, an empty element is created. |
Exceptions
| Exception | Description |
|---|---|
| InvalidOperationException | The current node the XPathNavigator is positioned on does not allow a new child node to be prepended. |
| NotSupportedException | The XPathNavigator does not support editing. |
See Also
- Class String
- Class XPathNavigator
- Namespace System::Xml::XPath
- Library Aspose.Slides