rapidxml
void insert_attribute ( xml_attribute< Ch > *  where,
xml_attribute< Ch > *  attribute 
) [inline]

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

Parameters:
wherePlace where to insert the attribute, or 0 to insert at the back.
attributeAttribute to insert.

References xml_node< Ch >::append_attribute(), xml_base< Ch >::parent(), and xml_node< Ch >::prepend_attribute().