<?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 Insert multi-line metadata item description using python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/insert-multi-line-metadata-item-description-using/m-p/27874#M2126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to update ESRI Metadata (i.e. what is viewed as the Item Description), and am specifically trying to update the "Description" with a multi-line entry.&amp;nbsp; (Please see the attached example, which was created manually.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My generalized workflow has been to&lt;/P&gt;&lt;P&gt;1) Export Metadata (to FGDC style) from a file geodatabase feature class/shapefile&lt;/P&gt;&lt;P&gt;2) Update the XML as needed&lt;/P&gt;&lt;P&gt;3) Import Metadata back to the feature class/shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I can edit the xml successfully and import it back to the feature class fine.&amp;nbsp; This would work well if I didn't care about line breaks...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I've tried:&lt;/P&gt;&lt;P&gt;- using \n and \t markers&lt;/P&gt;&lt;P&gt;- using &amp;lt;br&amp;gt; marker&lt;/P&gt;&lt;P&gt;- styling as &amp;lt;![CDATA[This is description line 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is description line 2.]]&amp;gt; ...this preserves the line break in the XML, but not doesn't translate as desired in ESRI Metadata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone accomplished this successfully?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2016 18:41:31 GMT</pubDate>
    <dc:creator>SamanthaNakata1</dc:creator>
    <dc:date>2016-08-02T18:41:31Z</dc:date>
    <item>
      <title>Insert multi-line metadata item description using python</title>
      <link>https://community.esri.com/t5/python-questions/insert-multi-line-metadata-item-description-using/m-p/27874#M2126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to update ESRI Metadata (i.e. what is viewed as the Item Description), and am specifically trying to update the "Description" with a multi-line entry.&amp;nbsp; (Please see the attached example, which was created manually.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My generalized workflow has been to&lt;/P&gt;&lt;P&gt;1) Export Metadata (to FGDC style) from a file geodatabase feature class/shapefile&lt;/P&gt;&lt;P&gt;2) Update the XML as needed&lt;/P&gt;&lt;P&gt;3) Import Metadata back to the feature class/shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I can edit the xml successfully and import it back to the feature class fine.&amp;nbsp; This would work well if I didn't care about line breaks...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I've tried:&lt;/P&gt;&lt;P&gt;- using \n and \t markers&lt;/P&gt;&lt;P&gt;- using &amp;lt;br&amp;gt; marker&lt;/P&gt;&lt;P&gt;- styling as &amp;lt;![CDATA[This is description line 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is description line 2.]]&amp;gt; ...this preserves the line break in the XML, but not doesn't translate as desired in ESRI Metadata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone accomplished this successfully?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 18:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/insert-multi-line-metadata-item-description-using/m-p/27874#M2126</guid>
      <dc:creator>SamanthaNakata1</dc:creator>
      <dc:date>2016-08-02T18:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Insert multi-line metadata item description using python</title>
      <link>https://community.esri.com/t5/python-questions/insert-multi-line-metadata-item-description-using/m-p/27875#M2127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem as you've described, but no solution so far.&amp;nbsp; I'm editing my metadata in Enterprise Architect using a custom add-in, but this is an annoying hiccup in my plan. Did you ever fined a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 23:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/insert-multi-line-metadata-item-description-using/m-p/27875#M2127</guid>
      <dc:creator>JasonHrubizna</dc:creator>
      <dc:date>2017-10-23T23:37:49Z</dc:date>
    </item>
  </channel>
</rss>

