Select to view content in your preferred language

Is there a way using Export XML Workspace Document to export every database connection from within a folder?

3664
11
11-17-2014 07:01 AM
MichaelRivera
Occasional Contributor II

Say I have 40 database connections in a folder, is there some way to just export every database that has a connection?

Instead of writing

in_data = "c:/data/StJohns.gdb"
out_file = "c:/data/StJohns.xml"
export_option = "SCHEMA_ONLY"
storage_type = "BINARY"
export_metadata = "METADATA"

# Execute ExportXMLWorkspaceDocument
arcpy.ExportXMLWorkspaceDocument_management(in_data, out_file, export_option, storage_type, export_metadata)

40 times?

0 Kudos
11 Replies
MichaelRivera
Occasional Contributor II

Where do you get pythonwin?  It used to be included on the ArcGIS install CD but hasn't been for awhile. I can't find where to download it.

0 Kudos
by Anonymous User
Not applicable