Update XML importer to use same API as JSON importer