ImportXML removed in 10.2

1744
1
03-09-2016 02:44 AM
Highlighted
New Contributor


I need ImportXML in 10.2 but I don't know it.

Reply
0 Kudos
1 Reply
Highlighted
Occasional Contributor III

Hello Miriam,

You can use Import Metadata tool through arcobjects as ImportXML class is not found anymore.

private void ImportMetadata(string sourceMetadata, string targetMetadata, string importType = "FROM_ISO_19139",bool enableAutomaticUpdates=true)

{

    IGeoProcessor gp = new GeoProcessor();

    IVariantArray va = new VarArrayClass();

    va.Add(sourceMetadata);

    va.Add(importType);

    va.Add(targetMetadata);

    va.Add(Convert.ToString(enableAutomaticUpdates));

    gp.Execute("ImportMetadata_conversion", va, null);

}

Reply
0 Kudos