## XmlDocument::ImportNode method


Imports a node from another document to the current document.

```cpp
virtual SharedPtr<XmlNode> System::Xml::XmlDocument::ImportNode(SharedPtr<XmlNode> node, bool deep)
```


| Parameter | Type | Description |
| --- | --- | --- |
| node | SharedPtr\<XmlNode\> | The node being imported. |
| deep | bool | **true** to perform a deep clone; otherwise, **false**. |

### ReturnValue

The imported [XmlNode](../../xmlnode/).

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlNode](../../xmlnode/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
