rapidxml
|
Clones an xml_node and its hierarchy of child nodes and attributes. Nodes and attributes are allocated from this memory pool. Names and values are not cloned, they are shared between the clone and the source. Result node can be optionally specified as a second parameter, in which case its contents will be replaced with cloned source node. This is useful when you want to clone entire document.
References memory_pool< Ch >::allocate_attribute(), memory_pool< Ch >::allocate_node(), xml_node< Ch >::first_attribute(), xml_node< Ch >::first_node(), xml_base< Ch >::name(), xml_base< Ch >::name_size(), xml_node< Ch >::type(), xml_base< Ch >::value(), and xml_base< Ch >::value_size(). |