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
<SPAN class="n">in_data</SPAN> <SPAN class="o">=</SPAN> <SPAN class="s">"c:/data/StJohns.gdb"</SPAN><BR /><SPAN class="n">out_file</SPAN> <SPAN class="o">=</SPAN> <SPAN class="s">"c:/data/StJohns.xml"</SPAN><BR /><SPAN class="n">export_option</SPAN> <SPAN class="o">=</SPAN> <SPAN class="s">"SCHEMA_ONLY"</SPAN><BR /><SPAN class="n">storage_type</SPAN> <SPAN class="o">=</SPAN> <SPAN class="s">"BINARY"</SPAN><BR /><SPAN class="n">export_metadata</SPAN> <SPAN class="o">=</SPAN> <SPAN class="s">"METADATA"</SPAN><BR /><BR /><SPAN class="c"># Execute ExportXMLWorkspaceDocument</SPAN><BR /><SPAN class="n">arcpy</SPAN><SPAN class="o">.</SPAN><SPAN class="n">ExportXMLWorkspaceDocument_management</SPAN><SPAN class="p">(</SPAN><SPAN class="n">in_data</SPAN><SPAN class="p">,</SPAN> <SPAN class="n">out_file</SPAN><SPAN class="p">,</SPAN> <SPAN class="n">export_option</SPAN><SPAN class="p">,</SPAN> <SPAN class="n">storage_type</SPAN><SPAN class="p">,</SPAN> <SPAN class="n">export_metadata</SPAN><SPAN class="p">)</SPAN><BR />
40 times?