sm970mn

Adding raster metadata to a mosaics attribute table

Discussion created by sm970mn on Feb 27, 2014
Hi All,

I'm trying to figure out a way to automatically calculate fields in a mosaic dataset's attribute table based on metadata/XML tags.

The Help documentation mentions adding a field and giving it a name = the xml tag:
http://resources.arcgis.com/en/help/main/10.1/index.html#//009t0000023z000000

When I try to enter the field's name using a tag (e.g. /metadata/dataqual/lineage/srcinfo/srcscal) I get an error about invalid characters b/c of the /


Any suggestions on getting this to work?
Anyone have success using a python script with ElementTree() to parse an xml and calculate attribute fields?


I currently have a script that pulls in raster properties, but there are a few things from the metadata that I'd like to add to the attributes (e.g. /cntper, /cntorg...)

Thanks for any help and suggestions!

Outcomes