Unify the import_xml methods