<?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 XML compact file in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/XML-compact-file/m-p/2258654#M1306</link>
    <description>I'm using the tAdvancedOutputFileXML to generate an XML file with a compact structure ie all on one line rather than an expanded vertical structure. This works well for the data body, however the version information: &amp;lt;?xml version="1.0" encoding="UTF-16"?&amp;gt; is put on it's own line:
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-16"?&amp;gt;
&lt;BR /&gt;&amp;lt;CustomerManagement xmlns:xsi=""&amp;gt;&amp;lt;etc etc&amp;gt;
&lt;BR /&gt;How can configure the component so&amp;nbsp;the CR/LF is removed and&amp;nbsp;everything is on the same line:
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-16"?&amp;gt;&amp;lt;CustomerManagement xmlns:xsi=""&amp;gt;
&lt;U&gt;&lt;FONT color="#0066cc"&gt;&amp;lt;etc&lt;/FONT&gt;&lt;/U&gt; etc&amp;gt;
&lt;BR /&gt;Any help would be appreciated..</description>
    <pubDate>Sat, 16 Nov 2024 10:23:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:23:32Z</dc:date>
    <item>
      <title>XML compact file</title>
      <link>https://community.qlik.com/t5/Data-Quality/XML-compact-file/m-p/2258654#M1306</link>
      <description>I'm using the tAdvancedOutputFileXML to generate an XML file with a compact structure ie all on one line rather than an expanded vertical structure. This works well for the data body, however the version information: &amp;lt;?xml version="1.0" encoding="UTF-16"?&amp;gt; is put on it's own line:
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-16"?&amp;gt;
&lt;BR /&gt;&amp;lt;CustomerManagement xmlns:xsi=""&amp;gt;&amp;lt;etc etc&amp;gt;
&lt;BR /&gt;How can configure the component so&amp;nbsp;the CR/LF is removed and&amp;nbsp;everything is on the same line:
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-16"?&amp;gt;&amp;lt;CustomerManagement xmlns:xsi=""&amp;gt;
&lt;U&gt;&lt;FONT color="#0066cc"&gt;&amp;lt;etc&lt;/FONT&gt;&lt;/U&gt; etc&amp;gt;
&lt;BR /&gt;Any help would be appreciated..</description>
      <pubDate>Sat, 16 Nov 2024 10:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/XML-compact-file/m-p/2258654#M1306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: XML compact file</title>
      <link>https://community.qlik.com/t5/Data-Quality/XML-compact-file/m-p/2258655#M1307</link>
      <description>Does anyone have any thoughts?</description>
      <pubDate>Wed, 14 Sep 2016 11:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/XML-compact-file/m-p/2258655#M1307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-14T11:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: XML compact file</title>
      <link>https://community.qlik.com/t5/Data-Quality/XML-compact-file/m-p/2258656#M1308</link>
      <description>This seems an odd request, but we developers often get weird requirements I guess. There are two ways to approach this. Since you already have your file created, you might not want to try and recreate the logic in your tAdvanceOutputFileXML and put it in a tXMLMap. If this is the case you can write the file, read it in as a single String using something like tFileInputRaw and then use the code below in a tJavaRow to remove the offending characters....
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;output_row.content = ((String)input_row.content).replaceAll("\\r|\\n", "");&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;Alternatively, to do this in one go and then create a file, move the logic into a tXMLMap. Connect that to a tConvertType to convert the output from XML to a String. Then use the logic above. Once that is done, write the newly formatted String to a file.</description>
      <pubDate>Wed, 14 Sep 2016 11:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/XML-compact-file/m-p/2258656#M1308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-14T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: XML compact file</title>
      <link>https://community.qlik.com/t5/Data-Quality/XML-compact-file/m-p/2258657#M1309</link>
      <description>thanks it's a customer requirement! I'll give it a go..</description>
      <pubDate>Wed, 14 Sep 2016 14:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/XML-compact-file/m-p/2258657#M1309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-14T14:31:02Z</dc:date>
    </item>
  </channel>
</rss>

