<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: batch metadata export 9.3.1 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256732#M19760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweet. I have already sorted this one out by exporting the schema and then I made a quick xml parser with python. I think that this should be fine. Looks good in testing.... Thanks for the input it is much appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 01:04:51 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2014-09-24T01:04:51Z</dc:date>
    <item>
      <title>batch metadata export 9.3.1</title>
      <link>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256728#M19756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to export all of the metadata for feature data sets and feature classes out of a SDE in FGDC CSDGM XML format without updating it to the new ESRI metadata structure.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have both arcgis 9.3.1 and 10.1. The SDE is 9.3.1.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the best solution for this problem. My first thought is python; however, my supervisor was unable to implement this because the available tool called updates the metadata to 10.1 (I do not see a way to do it in python for 9.3.1). So maybe vba is the way to go... &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest the best approach to this problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 21:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256728#M19756</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2014-09-11T21:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: batch metadata export 9.3.1</title>
      <link>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256729#M19757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;So I think I have a solution worked out with python and a&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;mdb&lt;/SPAN&gt;. My plan is to copy the&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;datasets&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;and feature class to a&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;mdb&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;database (&lt;SPAN&gt;esri&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;personal database) and then read the metadata directly with &lt;SPAN&gt;pyodbc&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://code.google.com/p/pyodbc/" style="color: #2989c5;" title="https://code.google.com/p/pyodbc/"&gt;&lt;SPAN&gt;&lt;SPAN&gt;pyodbc&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;- Python&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;ODBC&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;library - Google Project Hosting&lt;/SPAN&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work fine I believe. I have posted the code for just the metadata export for mdb part. Sorry I do not know what happed to the syntax highting option it is gone on my browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# import&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;import&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;pyodbc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;# set up some constants&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;MDB&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;=&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;r&lt;/SPAN&gt;"&lt;SPAN&gt;C&lt;/SPAN&gt;:\python_working\test.&lt;SPAN&gt;mdb&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;DRV&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;= '{Microsoft Access Driver (*.&lt;SPAN&gt;mdb&lt;/SPAN&gt;)}'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;PWD&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;= 'pw'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# connect to db&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;con =&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;pyodbc&lt;/SPAN&gt;.connect('DRIVER={};&lt;SPAN&gt;DBQ&lt;/SPAN&gt;={};&lt;SPAN&gt;PWD&lt;/SPAN&gt;={}'.format(&lt;SPAN&gt;DRV&lt;/SPAN&gt;,&lt;SPAN&gt;MDB&lt;/SPAN&gt;,&lt;SPAN&gt;PWD&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cur = con.cursor()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# run a query and get the results&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SQL = 'SELECT Documentation FROM&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;GDB&lt;/SPAN&gt;_Items;' # your query goes here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rows = cur.execute(SQL).&lt;SPAN&gt;fetchall&lt;/SPAN&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;for row in rows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = row[0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if temp is not None:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file = open('&lt;SPAN&gt;C&lt;/SPAN&gt;:/python_working/test.xml', 'w')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file.write(temp)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file.close()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print temp&lt;/P&gt;&lt;P&gt;cur.close()&lt;/P&gt;&lt;P&gt;con.close()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 18:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256729#M19757</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2014-09-15T18:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: batch metadata export 9.3.1</title>
      <link>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256730#M19758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Sorry I do not know what happed to the syntax highting option it is gone on my browser.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You need to open the thread by clicking on the title at the top and then you'll see "Use advanced editor" on the upper right of the edit window.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migration-blogpost/1070"&gt;Posting Code blocks in the new GeoNet&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 05:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256730#M19758</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-09-23T05:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: batch metadata export 9.3.1</title>
      <link>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256731#M19759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The XML Transformation tool should work fine dumping the metadata to an XML file directly from your 9.3 geodatabase without trouble.&amp;nbsp; You need to use the "exact copy of" XSLT file from the Desktop install folder. You could even do this from Model Builder, not even Python!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 05:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256731#M19759</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-09-23T05:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: batch metadata export 9.3.1</title>
      <link>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256732#M19760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweet. I have already sorted this one out by exporting the schema and then I made a quick xml parser with python. I think that this should be fine. Looks good in testing.... Thanks for the input it is much appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 01:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-metadata-export-9-3-1/m-p/256732#M19760</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2014-09-24T01:04:51Z</dc:date>
    </item>
  </channel>
</rss>

