133
145
//Create the node, by copying:
134
146
xmlNode* imported_node = xmlDocCopyNode(const_cast<xmlNode*>(node->cobj()), impl_->doc, recursive);
136
150
throw exception("Unable to import node");
139
157
xmlNode* added_node = xmlAddChild(this->cobj(),imported_node);
142
160
xmlFreeNode(imported_node);
143
163
throw exception("Unable to add imported node to current node");
146
169
return static_cast<Node*>(imported_node->_private);