## XPathNavigator::PrependChild() method


Returns an [XmlWriter](../../../system.xml/xmlwriter/) object used to create a new child node at the beginning of the list of child nodes of the current node.

```cpp
virtual SharedPtr<XmlWriter> System::Xml::XPath::XPathNavigator::PrependChild()
```


### ReturnValue

An [XmlWriter](../../../system.xml/xmlwriter/) object used to create a new child node at the beginning of the list of child nodes of the current node.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlWriter](../../../system.xml/xmlwriter/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.PDF for C++](../../../)
## XPathNavigator::PrependChild(SharedPtr\<XmlReader\>) method


Creates a new child node at the beginning of the list of child nodes of the current node using the XML contents of the [XmlReader](../../../system.xml/xmlreader/) object specified.

```cpp
virtual void System::Xml::XPath::XPathNavigator::PrependChild(SharedPtr<XmlReader> newChild)
```


| Parameter | Type | Description |
| --- | --- | --- |
| newChild | SharedPtr\<XmlReader\> | An [XmlReader](../../../system.xml/xmlreader/) object positioned on the XML data for the new child node. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlReader](../../../system.xml/xmlreader/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.PDF for C++](../../../)
## XPathNavigator::PrependChild(SharedPtr\<XPathNavigator\>) method


Creates a new child node at the beginning of the list of child nodes of the current node using the nodes in the [XPathNavigator](../) object specified.

```cpp
virtual void System::Xml::XPath::XPathNavigator::PrependChild(SharedPtr<XPathNavigator> newChild)
```


| Parameter | Type | Description |
| --- | --- | --- |
| newChild | SharedPtr\<XPathNavigator\> | An [XPathNavigator](../) object positioned on the node to add as the new child node. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XPathNavigator](../)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.PDF for C++](../../../)
## XPathNavigator::PrependChild(String) method


Creates a new child node at the beginning of the list of child nodes of the current node using the XML string specified.

```cpp
virtual void System::Xml::XPath::XPathNavigator::PrependChild(String newChild)
```


| Parameter | Type | Description |
| --- | --- | --- |
| newChild | String | The XML data string for the new child node. |

## See Also

* Class [String](../../../system/string/)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.PDF for C++](../../../)
