<?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: In Talend Open Studio, I have an XML Node without id: how can I set it? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/In-Talend-Open-Studio-I-have-an-XML-Node-without-id-how-can-I/m-p/2292554#M65619</link>
    <description>&lt;P&gt;Try the Xpath index-of function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;entryNumber "index-of(../../RDEntry)"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure of the exact syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also look at the position() function.&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 05:23:14 GMT</pubDate>
    <dc:creator>nfz11</dc:creator>
    <dc:date>2019-05-06T05:23:14Z</dc:date>
    <item>
      <title>In Talend Open Studio, I have an XML Node without id: how can I set it?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-Talend-Open-Studio-I-have-an-XML-Node-without-id-how-can-I/m-p/2292553#M65618</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I am using Open Studio 7.1 to compare xml files with JSONB files.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have an xml that contains a list of entities.&lt;/P&gt; 
&lt;P&gt;Each entity has a name.&lt;/P&gt; 
&lt;P&gt;Each entity has one or several entries.&lt;/P&gt; 
&lt;P&gt;The entries don't have a name or a value, nothing to identify them.&lt;/P&gt; 
&lt;P&gt;Each entry can have one or more dataitems&lt;/P&gt; 
&lt;P&gt;Each entry can have recursive dataGroups&lt;/P&gt; 
&lt;P&gt;Each entry can have a list of descriptions, containing a number of translations&lt;/P&gt; 
&lt;P&gt;I need to compare this file with a JSON file that does represent one of my entries.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Issue 1&lt;/STRONG&gt;: so far, I got to extract the descriptions with the translations of a given entry (if it does have one), with general information plus the name of the entity.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;BUT I don't know how to include a number or id for the entry, so I know that the descriptions belong to entity1, entry1. Does anybody have a solution?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Issue 2&lt;/STRONG&gt;: I want to check all the entries, even if they have no lsdlist, But if I put the loop at Entry level, I won't get the ldslist.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Issue 3&lt;/STRONG&gt;: I have 4 loops: entry, dataitem, datagroup (recursive...) and lsdlis, and I don't know to to chain them so I know that this entry contains theses dataitems, these datagroups and these lsdlists.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help is welcome.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the root loop I use is:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;ReferenceDataRespMsg/RDEntityList/RDEntity/RDEntry/LsdList/description&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the metadata:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datagroup1.PNG" style="width: 837px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4r7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144015i9E1A674E38AE15FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4r7.png" alt="0683p000009M4r7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here is the tFileInputXml:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datagroup2.PNG" style="width: 827px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M53H.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138491i0EBB18B98DC1FD11/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M53H.png" alt="0683p000009M53H.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here is the job (only one entry had lsdList, but I cannot even tell because no way to distinguish entries):&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="datagroup3.PNG" style="width: 584px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4vs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149019i6AC81D6E070405DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4vs.png" alt="0683p000009M4vs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The file I have used is in attachment.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-Talend-Open-Studio-I-have-an-XML-Node-without-id-how-can-I/m-p/2292553#M65618</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2024-11-16T05:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: In Talend Open Studio, I have an XML Node without id: how can I set it?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-Talend-Open-Studio-I-have-an-XML-Node-without-id-how-can-I/m-p/2292554#M65619</link>
      <description>&lt;P&gt;Try the Xpath index-of function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;entryNumber "index-of(../../RDEntry)"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure of the exact syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also look at the position() function.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 05:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-Talend-Open-Studio-I-have-an-XML-Node-without-id-how-can-I/m-p/2292554#M65619</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-05-06T05:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: In Talend Open Studio, I have an XML Node without id: how can I set it?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-Talend-Open-Studio-I-have-an-XML-Node-without-id-how-can-I/m-p/2292555#M65620</link>
      <description>&lt;P&gt;I found the solution. The ids should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For entity: "count(ancestor::RDEntity/preceding-sibling::RDEntity) + 1"&lt;/P&gt;&lt;P&gt;For entry:&amp;nbsp;"count(ancestor::RDEntry/preceding-sibling::RDEntry) + 1"&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 14:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-Talend-Open-Studio-I-have-an-XML-Node-without-id-how-can-I/m-p/2292555#M65620</guid>
      <dc:creator>spr654</dc:creator>
      <dc:date>2019-06-06T14:10:46Z</dc:date>
    </item>
  </channel>
</rss>

