This is a confusing name, since the XML doesn't go anywhere, and the function calls look like they don't do anything.  (It might be a name+semantic I made up, sorry).  Maybe "add_to_node"?