rapidxml

◆ insert_node()

template<class Ch = char>
void insert_node ( xml_node< Ch > * where,
xml_node< Ch > * child )
inline

Inserts a new child node at specified place inside the node. All children after and including the specified node are moved one position back.

Parameters
wherePlace where to insert the child, or 0 to insert at the back.
childNode to insert.

References xml_node< Ch >::append_node(), rapidxml::node_document, xml_base< Ch >::parent(), xml_node< Ch >::prepend_node(), and xml_node< Ch >::type().