<?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 Export Pro Metadata XML with Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/export-pro-metadata-xml-with-python/m-p/1272124#M67245</link>
    <description>&lt;P&gt;Hi I'm trying to access an ArcGIS Pro item's metadata XML using python and was wondering if anyone could help. I'm using the exportMetadata function in the documentation ((&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm&lt;/A&gt;)) but when I open the XML that I stored, it looks like the code piece below. It's the metadata of when I ran my python script instead of the metadata of the item in Pro. Has anyone ran into a similar issue or know the solution?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0"?&amp;gt;

&amp;lt;metadata xml:lang="en"&amp;gt;&amp;lt;Esri&amp;gt;&amp;lt;CreaDate&amp;gt;20230327&amp;lt;/CreaDate&amp;gt;&amp;lt;CreaTime&amp;gt;11230800&amp;lt;/CreaTime&amp;gt;&amp;lt;ArcGISFormat&amp;gt;1.0&amp;lt;/ArcGISFormat&amp;gt;&amp;lt;SyncOnce&amp;gt;TRUE&amp;lt;/SyncOnce&amp;gt;&amp;lt;/Esri&amp;gt;&amp;lt;/metadata&amp;gt;
&lt;/LI-CODE&gt;&lt;P&gt;Here's what my code looks like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;item_metadata = md.Metadata(path)
item_metadata.exportMetadata(outputXMLPath)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 19:37:52 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2023-03-27T19:37:52Z</dc:date>
    <item>
      <title>Export Pro Metadata XML with Python</title>
      <link>https://community.esri.com/t5/python-questions/export-pro-metadata-xml-with-python/m-p/1272124#M67245</link>
      <description>&lt;P&gt;Hi I'm trying to access an ArcGIS Pro item's metadata XML using python and was wondering if anyone could help. I'm using the exportMetadata function in the documentation ((&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm&lt;/A&gt;)) but when I open the XML that I stored, it looks like the code piece below. It's the metadata of when I ran my python script instead of the metadata of the item in Pro. Has anyone ran into a similar issue or know the solution?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0"?&amp;gt;

&amp;lt;metadata xml:lang="en"&amp;gt;&amp;lt;Esri&amp;gt;&amp;lt;CreaDate&amp;gt;20230327&amp;lt;/CreaDate&amp;gt;&amp;lt;CreaTime&amp;gt;11230800&amp;lt;/CreaTime&amp;gt;&amp;lt;ArcGISFormat&amp;gt;1.0&amp;lt;/ArcGISFormat&amp;gt;&amp;lt;SyncOnce&amp;gt;TRUE&amp;lt;/SyncOnce&amp;gt;&amp;lt;/Esri&amp;gt;&amp;lt;/metadata&amp;gt;
&lt;/LI-CODE&gt;&lt;P&gt;Here's what my code looks like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;item_metadata = md.Metadata(path)
item_metadata.exportMetadata(outputXMLPath)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 19:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-pro-metadata-xml-with-python/m-p/1272124#M67245</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-03-27T19:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export Pro Metadata XML with Python</title>
      <link>https://community.esri.com/t5/python-questions/export-pro-metadata-xml-with-python/m-p/1272283#M67246</link>
      <description>&lt;P&gt;What specific item are you trying to get the metadata for?&amp;nbsp; Seeing more of your code could help with an answer.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 01:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-pro-metadata-xml-with-python/m-p/1272283#M67246</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-03-28T01:04:19Z</dc:date>
    </item>
  </channel>
</rss>

