define xml_node_to_hash for hash