<?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: Inserting newlines in metadata text  in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/inserting-newlines-in-metadata-text/m-p/344798#M9096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just an idea, no idea if it will work, have you tried the vb constant&amp;nbsp;&lt;STRONG&gt;vbNewLine&lt;/STRONG&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2019 23:43:57 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2019-01-11T23:43:57Z</dc:date>
    <item>
      <title>Inserting newlines in metadata text</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/inserting-newlines-in-metadata-text/m-p/344797#M9095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am editing metadata via a VB.NET Addin. Update information comes from ASCII files and I am and looking for a way to insert new lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this simple example the ASCII text provided might look like: "Administrator: Person A"&amp;nbsp; &lt;/P&gt;&lt;P&gt;Using the IXmlPropertySet2 interfacemy code looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim sName As String = "mdContact/rpPosName"&lt;BR /&gt;Dim sValue As Object = "Administrator:&amp;nbsp; \r\n&amp;nbsp; Person A"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'update string with escape sequence added&lt;BR /&gt;XmlPropertySet2.SetPropertyX(sName, sValue, esriXmlPropertyType.esriXPTText,&amp;nbsp; esriXmlSetPropertyAction.esriXSPAAddOrReplace, False)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting the property type to esriXPTText suggests that the value parameter (sValue in this example) should be a string.&amp;nbsp;However any escape characters inserted in the string are not interpreted correctly and instead are shown as normal text in the metadata viewer. Being at a loss what the correct escape character might be I tried quite a variety: &amp;lt;\r\n&amp;gt; &amp;nbsp;&amp;nbsp; &amp;amp;lt;br&amp;amp;gt;,&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;#013; &amp;nbsp; &amp;amp;#10;&amp;nbsp; &amp;lt;br&amp;gt;&amp;nbsp; \r\n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have seen the somewhat similar thread&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2145" data-containertype="14" data-objectid="213315" data-objecttype="1" href="https://community.esri.com/thread/213315-new-line-in-metadata-summary-description"&gt;https://community.esri.com/thread/213315-new-line-in-metadata-summary-description&lt;/A&gt;&lt;SPAN&gt; but this does not fit my problem.&lt;/SPAN&gt;&lt;BR /&gt;Any ideas how to insert new lines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2019 09:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/inserting-newlines-in-metadata-text/m-p/344797#M9095</guid>
      <dc:creator>AxelThomas</dc:creator>
      <dc:date>2019-01-04T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting newlines in metadata text</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/inserting-newlines-in-metadata-text/m-p/344798#M9096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just an idea, no idea if it will work, have you tried the vb constant&amp;nbsp;&lt;STRONG&gt;vbNewLine&lt;/STRONG&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 23:43:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/inserting-newlines-in-metadata-text/m-p/344798#M9096</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-01-11T23:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting newlines in metadata text</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/inserting-newlines-in-metadata-text/m-p/344799#M9097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duncan,&lt;/P&gt;&lt;P&gt;thanks for the input but vbNewLine (or vbCrLf for that matter) will not work. I alredy thought to use &amp;lt;br&amp;gt; (the interface is called XmlPropertySet after all) but I am not very versed with xml and did not make it work either. Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 07:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/inserting-newlines-in-metadata-text/m-p/344799#M9097</guid>
      <dc:creator>AxelThomas</dc:creator>
      <dc:date>2019-01-14T07:16:39Z</dc:date>
    </item>
  </channel>
</rss>

