tree_to_xml