ImportNode()

XmlDocument::ImportNode(SharedPtr<XmlNode>, bool) method

Imports a node from another document to the current document.

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

Arguments

ParameterTypeDescription
nodeSharedPtr<XmlNode>The node being imported.
deepbooltrue to perform a deep clone; otherwise, false.

Return Value

The imported XmlNode.

Exceptions

ExceptionDescription
InvalidOperationExceptionCalling this method on a node type which cannot be imported.

See Also