<?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>Question Re: HCI csv converter, remove blank line between headers and elements in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/hci-csv-converter-remove-blank-line-between-headers-and-elements/qaa-p/370065#M28036</link>
    <description>&lt;P&gt;I already resolved this issue i put an script after the xml to csv converter with this code:&lt;/P&gt;&lt;P&gt;import com.sap.gateway.ip.core.customdev.util.Message; &lt;/P&gt;&lt;P&gt;import java.util.HashMap; &lt;/P&gt;&lt;P&gt;def Message processData(Message message) 
{ &lt;/P&gt;&lt;P&gt;      def body = message.getBody(String.class); &lt;/P&gt;&lt;P&gt;body = body.replaceAll("[\n]",""); &lt;/P&gt;&lt;P&gt; message.setBody(body);&lt;/P&gt;&lt;P&gt;
     return message;&lt;/P&gt;&lt;P&gt;
}&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 00:06:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-02-24T00:06:55Z</dc:date>
    <item>
      <title>HCI csv converter, remove blank line between headers and elements</title>
      <link>https://community.sap.com/t5/technology-q-a/hci-csv-converter-remove-blank-line-between-headers-and-elements/qaq-p/370064</link>
      <description>&lt;P&gt;I added to the XSLT Mapping file a customize header, example:&lt;/P&gt;&lt;P&gt;  &amp;lt;Records&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Header&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;H1&amp;gt;Customize Header&amp;lt;/H1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Header&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Elements&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Value1&amp;gt;Value 1&amp;lt;/Value1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Elements&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Records&amp;gt;&lt;/P&gt;&lt;P&gt;But when i use the XML to CSV converter the iflow gives me a .csv file with a blank line between the header (Customize Header) and the elements (Value1).&lt;/P&gt;&lt;P&gt;CSV File output:&lt;/P&gt;&lt;P&gt;Customize Header&lt;/P&gt;&lt;P&gt;------Blank line-----&lt;/P&gt;&lt;P&gt;Value 1&lt;/P&gt;&lt;P&gt;Is there a way to remove the blank line?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 23:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hci-csv-converter-remove-blank-line-between-headers-and-elements/qaq-p/370064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-02-23T23:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: HCI csv converter, remove blank line between headers and elements</title>
      <link>https://community.sap.com/t5/technology-q-a/hci-csv-converter-remove-blank-line-between-headers-and-elements/qaa-p/370065#M28036</link>
      <description>&lt;P&gt;I already resolved this issue i put an script after the xml to csv converter with this code:&lt;/P&gt;&lt;P&gt;import com.sap.gateway.ip.core.customdev.util.Message; &lt;/P&gt;&lt;P&gt;import java.util.HashMap; &lt;/P&gt;&lt;P&gt;def Message processData(Message message) 
{ &lt;/P&gt;&lt;P&gt;      def body = message.getBody(String.class); &lt;/P&gt;&lt;P&gt;body = body.replaceAll("[\n]",""); &lt;/P&gt;&lt;P&gt; message.setBody(body);&lt;/P&gt;&lt;P&gt;
     return message;&lt;/P&gt;&lt;P&gt;
}&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 00:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hci-csv-converter-remove-blank-line-between-headers-and-elements/qaa-p/370065#M28036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-02-24T00:06:55Z</dc:date>
    </item>
  </channel>
</rss>

