<?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: tAdvancedFileOuputXML not able to use namespace prefix for root elemen in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256844#M39104</link>
    <description>hi,&lt;BR /&gt;try by specifying hour "xmlns:scf" like an attribute and give it a default value !&lt;BR /&gt;Here a little similar example with svg and 2 differents namespaces :&lt;BR /&gt;the result :&lt;BR /&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt;&lt;BR /&gt;&amp;lt;svg:svg xmlns:svg="http://www.w3.org/2000/svg" &lt;BR /&gt;		 baseProfile="full" &lt;BR /&gt;		 xmlns:xlink="http://www.w3.org/1999/xlink"&amp;gt;&lt;BR /&gt;  &amp;lt;svg:rect x="70" y="45" height="75" width="67" fill="red"/&amp;gt;&lt;BR /&gt;  &amp;lt;svg:script xlink:href="script.js"/&amp;gt;&lt;BR /&gt;&amp;lt;/svg:svg&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;hope it helps&lt;BR /&gt;regard&lt;BR /&gt;laurent</description>
    <pubDate>Sat, 10 Jul 2010 14:01:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-07-10T14:01:28Z</dc:date>
    <item>
      <title>tAdvancedFileOuputXML not able to use namespace prefix for root elemen</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256843#M39103</link>
      <description>Good Afternoon, 
&lt;BR /&gt;I hope you can help me with a problem on XML file generation. 
&lt;BR /&gt;Please see attached for screenshots of the jobs and XML tree setup. 
&lt;BR /&gt;I am using tAdvancedFileOutputXML to create an XML file that uses a namespace called "scf". 
&lt;BR /&gt;I have been able to get the file to generate (jobs complete successfully) but I can only get the sub-elements to display with the namespace prefix. If I add the namespace pref to the root element i.e. &amp;lt;scf 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;penItems&amp;gt; rather than &amp;lt;OpenItems&amp;gt; I encounter the following error: 
&lt;BR /&gt;"Exception in component tAdvancedFileOutputXML_1 
&lt;BR /&gt;java.lang.NullPointerException 
&lt;BR /&gt; at ing_buyer_import.scf_oi_extractor_v2_0_1.SCF_OI_Extractor_v2.tSybaseInput_3Process(SCF_OI_Extractor_v2.java:4418) 
&lt;BR /&gt; at ing_buyer_import.scf_oi_extractor_v2_0_1.SCF_OI_Extractor_v2.tWarn_4Process(SCF_OI_Extractor_v2.java:2473) 
&lt;BR /&gt; at ing_buyer_import.scf_oi_extractor_v2_0_1.SCF_OI_Extractor_v2.runJobInTOS(SCF_OI_Extractor_v2.java:7986) 
&lt;BR /&gt; at ing_buyer_import.scf_oi_extractor_v2_0_1.SCF_OI_Extractor_v2.main(SCF_OI_Extractor_v2.java:7800)" 
&lt;BR /&gt;If I leave the XML tree root element without a namespace prefix my tXSDValidator job fails as the namespace is required in my xsd schema. 
&lt;BR /&gt;Can you please give me advice on a workaround or if I am using the jobs/tree incorrectly? 
&lt;BR /&gt;Thanks for your help! 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;Fabrice</description>
      <pubDate>Sat, 16 Nov 2024 13:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256843#M39103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: tAdvancedFileOuputXML not able to use namespace prefix for root elemen</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256844#M39104</link>
      <description>hi,&lt;BR /&gt;try by specifying hour "xmlns:scf" like an attribute and give it a default value !&lt;BR /&gt;Here a little similar example with svg and 2 differents namespaces :&lt;BR /&gt;the result :&lt;BR /&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt;&lt;BR /&gt;&amp;lt;svg:svg xmlns:svg="http://www.w3.org/2000/svg" &lt;BR /&gt;		 baseProfile="full" &lt;BR /&gt;		 xmlns:xlink="http://www.w3.org/1999/xlink"&amp;gt;&lt;BR /&gt;  &amp;lt;svg:rect x="70" y="45" height="75" width="67" fill="red"/&amp;gt;&lt;BR /&gt;  &amp;lt;svg:script xlink:href="script.js"/&amp;gt;&lt;BR /&gt;&amp;lt;/svg:svg&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;hope it helps&lt;BR /&gt;regard&lt;BR /&gt;laurent</description>
      <pubDate>Sat, 10 Jul 2010 14:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256844#M39104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-10T14:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: tAdvancedFileOuputXML not able to use namespace prefix for root elemen</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256845#M39105</link>
      <description>Thanks for your response 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I am running Talend 4.01 (r41260-20100429-0544). 
&lt;BR /&gt;I tried your suggestion before too but it results in a different error. It seems to indicate that Talend cannot resolve the namespace when creating the XML file. 
&lt;BR /&gt;In my previous configuration it recognises the namespace but doesn't set the prefix on the root element. 
&lt;BR /&gt;If your test scenario works then it may be ordering of the attributes. 
&lt;BR /&gt;"Exception in component tAdvancedFileOutputXML_1 
&lt;BR /&gt;org.dom4j.XPathException: Exception occurred evaluting XPath: /scf 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;penItems/scf:buyer. Exception: XPath expression uses unbound namespace prefix scf 
&lt;BR /&gt; at org.dom4j.xpath.DefaultXPath.handleJaxenException(DefaultXPath.java:374) 
&lt;BR /&gt; at org.dom4j.xpath.DefaultXPath.selectSingleNode(DefaultXPath.java:173) 
&lt;BR /&gt; at org.dom4j.tree.AbstractNode.selectSingleNode(AbstractNode.java:185) 
&lt;BR /&gt; at ing_buyer_import.scf_oi_extractor_v2_0_1.SCF_OI_Extractor_v2.tSybaseInput_3Process(SCF_OI_Extractor_v2.java:4401) 
&lt;BR /&gt; at ing_buyer_import.scf_oi_extractor_v2_0_1.SCF_OI_Extractor_v2.tWarn_4Process(SCF_OI_Extractor_v2.java:2473) 
&lt;BR /&gt; at ing_buyer_import.scf_oi_extractor_v2_0_1.SCF_OI_Extractor_v2.runJobInTOS(SCF_OI_Extractor_v2.java:7983) 
&lt;BR /&gt; at ing_buyer_import.scf_oi_extractor_v2_0_1.SCF_OI_Extractor_v2.main(SCF_OI_Extractor_v2.java:7797)!" 
&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 12 Jul 2010 09:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256845#M39105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-12T09:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: tAdvancedFileOuputXML not able to use namespace prefix for root elemen</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256846#M39106</link>
      <description>extra screenshots</description>
      <pubDate>Tue, 13 Jul 2010 15:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256846#M39106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-13T15:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: tAdvancedFileOuputXML not able to use namespace prefix for root elemen</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256847#M39107</link>
      <description>Hey Symond,
&lt;BR /&gt;Even I'm facing the same problem.
&lt;BR /&gt;My XML looses its attributes and namespaces. 
&lt;BR /&gt;I used tAdvancedFileOutputXML Component to generate XML.
&lt;BR /&gt;If you have the solution, please share.
&lt;BR /&gt;Thanks &amp;amp; Regards,
&lt;BR /&gt;Priya</description>
      <pubDate>Wed, 08 Dec 2010 04:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256847#M39107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-08T04:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: tAdvancedFileOuputXML not able to use namespace prefix for root elemen</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256848#M39108</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hey Symond,&lt;BR /&gt;Even I'm facing the same problem.&lt;BR /&gt;My XML looses its attributes and namespaces. &lt;BR /&gt;I used tAdvancedFileOutputXML Component to generate XML.&lt;BR /&gt;If you have the solution, please share.&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Priya&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;please see attached for setup that worked for me
&lt;BR /&gt;namespace was added to the schema with its value hardcoded as a default
&lt;BR /&gt;not great but it worked for me</description>
      <pubDate>Wed, 08 Dec 2010 09:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256848#M39108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-08T09:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: tAdvancedFileOuputXML not able to use namespace prefix for root elemen</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256849#M39109</link>
      <description>Hey Symond,
&lt;BR /&gt;Thanks for reply.
&lt;BR /&gt;Priya</description>
      <pubDate>Wed, 09 Feb 2011 05:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tAdvancedFileOuputXML-not-able-to-use-namespace-prefix-for-root/m-p/2256849#M39109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-09T05:41:58Z</dc:date>
    </item>
  </channel>
</rss>

