Add docstring for xml_to_dict