All Classes |Grouped Classes |Index

Function import_node

Imports a node from another document to this document.

	CL_DomNode CL_DomDocument::import_node(
		const CL_DomNode & node,
		bool deep);

Detailed description:

The returned node has no parent. The source node is not altered or removed from the original document; this method creates a new copy of the source node.

For all nodes, importing a node creates a node object owned by the importing document, with attribute values identical to the source node's node_name and node_type, plus the attributes related to namespaces (prefix, local_name, and namespace_uri). As in the clone_node operation on a Node, the source node is not altered.