<?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: Problem with non mandatory elements in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-non-mandatory-elements/m-p/2295725#M68467</link>
    <description>If an optional Element or Attribute is missing in your input XML file, then the output schema would contain null values and all the mandatory fields must be present. 
&lt;BR /&gt;The only case when the schema could be lost - does not result in a flow output row, will happen when your loop xpath contains one or more of the optional elements. 
&lt;BR /&gt;This behaviour is absolutely correct, if there is nothing to loop, then no output! 
&lt;BR /&gt;How can you read other Mandatory Elements? 
&lt;BR /&gt;Option 1 is to define find another LOOP XPATH which would be based on the mandatory elements only. 
&lt;BR /&gt;Option 2 split your main XML into two or more smaller XML subsets and set LOOP XPATH for each individually. You can do the split with tFileInputXML or tXMLMap. 
&lt;BR /&gt;Optino 3 ...there is always a way 
&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;Example for option 2 
&lt;BR /&gt;Let's say you expect XML like this: 
&lt;BR /&gt;&amp;lt;Customer&amp;gt; 
&lt;BR /&gt; &amp;lt;Name&amp;gt; 
&lt;BR /&gt; &amp;lt;FirstName&amp;gt;Fred&amp;lt;/FirstName&amp;gt; 
&lt;BR /&gt; &amp;lt;LastName&amp;gt;Flintstone&amp;lt;/LastName&amp;gt; 
&lt;BR /&gt; &amp;lt;/Name&amp;gt; 
&lt;BR /&gt; &amp;lt;Addresses&amp;gt; 
&lt;BR /&gt; &amp;lt;Address&amp;gt; 
&lt;BR /&gt; &amp;lt;POSTCODE&amp;gt;XYZ&amp;lt;/POSTCODE&amp;gt; 
&lt;BR /&gt; &amp;lt;/Address&amp;gt; 
&lt;BR /&gt; &amp;lt;Address&amp;gt; 
&lt;BR /&gt; &amp;lt;POSTCODE&amp;gt;123&amp;lt;/POSTCODE&amp;gt; 
&lt;BR /&gt; &amp;lt;/Address&amp;gt; 
&lt;BR /&gt; &amp;lt;/Addresses&amp;gt; 
&lt;BR /&gt;&amp;lt;/Customer&amp;gt; 
&lt;BR /&gt;if you had your loop xpath set as "/Customer/Addresses/Address" you would be not able to record any Customers that have no Address recorded in the XML. 
&lt;BR /&gt;Basically you would be getting no output from this kind of XML 
&lt;BR /&gt;&amp;lt;Customer&amp;gt; 
&lt;BR /&gt; &amp;lt;Name&amp;gt; 
&lt;BR /&gt; &amp;lt;FirstName&amp;gt;Fred&amp;lt;/FirstName&amp;gt; 
&lt;BR /&gt; &amp;lt;LastName&amp;gt;Flintstone&amp;lt;/LastName&amp;gt; 
&lt;BR /&gt; &amp;lt;/Name&amp;gt; 
&lt;BR /&gt;&amp;lt;/Customer&amp;gt; 
&lt;BR /&gt;But if you split your main XML into two and process first one with LOOP XPATH = "/Name" and second with "/Addresses/Address" you would still be getting a result from the first one even if the second one has no output. 
&lt;BR /&gt; 
&lt;BR /&gt;To your issue with login have a look at this 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoPhCAK" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Login-to-talendforge-forum/td-p/94384&lt;/A&gt; 
&lt;BR /&gt;I had the same issue and it helped when I changed the password.</description>
    <pubDate>Wed, 06 Mar 2013 17:05:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-06T17:05:15Z</dc:date>
    <item>
      <title>Problem with non mandatory elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-non-mandatory-elements/m-p/2295724#M68466</link>
      <description>Hi,
&lt;BR /&gt;I'm trying to load a complex (XSD about 4.5tsd lines) XML file into a database. Since the XML file is also pretty large the assistant for loading a XML file does not work. I can only use the operators tFileInputXML or tFileInputMSXML with the sax option. That's ok so far but I figured out that everytime an element is not present in the XML file, the whole schema is lost for that row. In case of tFileInputXML this means that I would have to implement at least one single operator for every non mandatory XML element and join the results later. In case of tFileInputMSXML this means that I would have to implement at least one single outputline for every non mandatory XML element and join the results later. Since there are a lot of non mandatory XML elements this is absolutely not applicable. Am I missing something or are these operators not designed for complex XML files?
&lt;BR /&gt;thanks in advance, chris
&lt;BR /&gt;btw: There is a problem with my registration, I'm logged in to talend.com but not to talendforge.org. I can log in (talend.com) but back on talendforge it says that I'm not logged in but my username is used here.</description>
      <pubDate>Tue, 05 Mar 2013 07:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-non-mandatory-elements/m-p/2295724#M68466</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-03-05T07:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with non mandatory elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-non-mandatory-elements/m-p/2295725#M68467</link>
      <description>If an optional Element or Attribute is missing in your input XML file, then the output schema would contain null values and all the mandatory fields must be present. 
&lt;BR /&gt;The only case when the schema could be lost - does not result in a flow output row, will happen when your loop xpath contains one or more of the optional elements. 
&lt;BR /&gt;This behaviour is absolutely correct, if there is nothing to loop, then no output! 
&lt;BR /&gt;How can you read other Mandatory Elements? 
&lt;BR /&gt;Option 1 is to define find another LOOP XPATH which would be based on the mandatory elements only. 
&lt;BR /&gt;Option 2 split your main XML into two or more smaller XML subsets and set LOOP XPATH for each individually. You can do the split with tFileInputXML or tXMLMap. 
&lt;BR /&gt;Optino 3 ...there is always a way 
&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;Example for option 2 
&lt;BR /&gt;Let's say you expect XML like this: 
&lt;BR /&gt;&amp;lt;Customer&amp;gt; 
&lt;BR /&gt; &amp;lt;Name&amp;gt; 
&lt;BR /&gt; &amp;lt;FirstName&amp;gt;Fred&amp;lt;/FirstName&amp;gt; 
&lt;BR /&gt; &amp;lt;LastName&amp;gt;Flintstone&amp;lt;/LastName&amp;gt; 
&lt;BR /&gt; &amp;lt;/Name&amp;gt; 
&lt;BR /&gt; &amp;lt;Addresses&amp;gt; 
&lt;BR /&gt; &amp;lt;Address&amp;gt; 
&lt;BR /&gt; &amp;lt;POSTCODE&amp;gt;XYZ&amp;lt;/POSTCODE&amp;gt; 
&lt;BR /&gt; &amp;lt;/Address&amp;gt; 
&lt;BR /&gt; &amp;lt;Address&amp;gt; 
&lt;BR /&gt; &amp;lt;POSTCODE&amp;gt;123&amp;lt;/POSTCODE&amp;gt; 
&lt;BR /&gt; &amp;lt;/Address&amp;gt; 
&lt;BR /&gt; &amp;lt;/Addresses&amp;gt; 
&lt;BR /&gt;&amp;lt;/Customer&amp;gt; 
&lt;BR /&gt;if you had your loop xpath set as "/Customer/Addresses/Address" you would be not able to record any Customers that have no Address recorded in the XML. 
&lt;BR /&gt;Basically you would be getting no output from this kind of XML 
&lt;BR /&gt;&amp;lt;Customer&amp;gt; 
&lt;BR /&gt; &amp;lt;Name&amp;gt; 
&lt;BR /&gt; &amp;lt;FirstName&amp;gt;Fred&amp;lt;/FirstName&amp;gt; 
&lt;BR /&gt; &amp;lt;LastName&amp;gt;Flintstone&amp;lt;/LastName&amp;gt; 
&lt;BR /&gt; &amp;lt;/Name&amp;gt; 
&lt;BR /&gt;&amp;lt;/Customer&amp;gt; 
&lt;BR /&gt;But if you split your main XML into two and process first one with LOOP XPATH = "/Name" and second with "/Addresses/Address" you would still be getting a result from the first one even if the second one has no output. 
&lt;BR /&gt; 
&lt;BR /&gt;To your issue with login have a look at this 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoPhCAK" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Login-to-talendforge-forum/td-p/94384&lt;/A&gt; 
&lt;BR /&gt;I had the same issue and it helped when I changed the password.</description>
      <pubDate>Wed, 06 Mar 2013 17:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-non-mandatory-elements/m-p/2295725#M68467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-06T17:05:15Z</dc:date>
    </item>
  </channel>
</rss>

