Summary
Exports metadata for many ArcGIS items to a designated folder. This tool is a model that uses Export Metadata to export metadata for many ArcGIS items.
Usage
The output XML files are named by appending _export.xml to the item's name and are stored in the specified folder.
Syntax
arcpy.conversion.ExportMetadataMultiple(Source_Metadata, Translator, Output_Folder)
Parameter | Explanation | Data Type |
Source_Metadata [Source_Metadata,...] | The set of items whose metadata will be converted, or the set of stand-alone XML files that will be converted. | Data Element |
Translator | An XML file that defines the conversion that will be performed. The translator files provided with ArcGIS Desktop can be found in the <ArcGIS Installation Location>\Metadata\Translator folder. The following translators are provided:
| File |
Output_Folder | An existing folder where the output XML files containing the converted metadata will be stored. | Folder |
Code sample
Export metadata for many ArcGIS items
Updates and exports metadata for several ArcGIS items to XML files that are formatted correctly for the ISO 19139 metadata standard. The output XML files are stored in the specified folder.
import arcpy
from arcpy import env
env.workspace = "C:/data"
#set local variables
sources = "vegetation;vegtypes;vegreport.doc;vegmap.mxd;veglayer.lyr"
dir = arcpy.GetInstallInfo("desktop")["InstallDir"]
translator = dir + "Metadata/Translator/ESRI_ISO2ISO19139.xml"
arcpy.ExportMetadataMultiple_conversion (sources, translator, "c:/data/export")
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes