1

Is it possible to only export only some feature classes when exporting a workspace to an XML document?

I know that when I am in ArcCatalog, I can right click my database --> Export XML Workspace Document. Then a GUI shows up and I can check-mark which features I want to include or exclude in my export.

What is the Arcpy equivalent of this manual export?

I found arcpy.ExportXMLWorkspaceDocument_management(...) function but the in_data parameter only seems to let me enter one feature class. It does not accept an array ["feature1", "feature2"].

I found this question using ArcObjects: How to export only some feature classes to xml using ArcObjects? But I am not familiar with ArcObjects and am hoping to write this script in Python.

1 Answer 1

1

I do this as a two step process, i.e. export the layers to another geodatabase and then create the xml of the minimised content from that. I know it is long winded, but it is a work around.

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.