<?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 [resolved] tXMLMap is not working correctly with date fields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232300#M22307</link>
    <description>Hi, 
&lt;BR /&gt;I am working TOS 551 and using xml data. I noticed an issue with xml date fields. See below example: 
&lt;BR /&gt;This simple job reads an xml file, uses the tXMLMap and outputs the data to the log. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBWu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153020i97ED02A9979E36DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBWu.png" alt="0683p000009MBWu.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Content of tFileInputXML. Nothing special done here. Just reading a testDate.xml file which contains a date field. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBkC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130297i448665723D394841/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBkC.png" alt="0683p000009MBkC.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;In the Map Editor I did an import from File and used my xsd file. 
&lt;BR /&gt;This simple xsd (also attached) contains an type="xs:date" field. 
&lt;BR /&gt;The result is shown below: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBkC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130297i448665723D394841/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBkC.png" alt="0683p000009MBkC.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;As you can see the data is not shown correctly. 
&lt;BR /&gt;Can you please explain what I am doing wrong or if this is a bug, can you please fix? 
&lt;BR /&gt;Looks like Talend is expecting a date always to be in format "dd-mm-yyyy" while the xml dat format is "yyyy-mm-dd". 
&lt;BR /&gt;I'm working around this by changing the date type in the xsd by the String type. 
&lt;BR /&gt;The xml: 
&lt;BR /&gt;&amp;lt;testDate xmlns:xsd="" xmlns:xsi=""&amp;gt; 
&lt;BR /&gt;&amp;lt;runDate&amp;gt;2014-09-27&amp;lt;/runDate&amp;gt; 
&lt;BR /&gt;&amp;lt;/testDate&amp;gt; 
&lt;BR /&gt;The xsd: 
&lt;BR /&gt;&amp;lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs=""&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;lt;xs:element name="testDate"&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xs:complexType&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xs:sequence&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xs:element type="xs:date" name="runDate"/&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xs:sequence&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xs:complexType&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;lt;/xs:element&amp;gt; 
&lt;BR /&gt;&amp;lt;/xs:schema&amp;gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/101535/testDate.zip.zip" target="_blank"&gt;testDate.zip.zip&lt;/A&gt;</description>
    <pubDate>Mon, 01 Dec 2014 14:12:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-01T14:12:22Z</dc:date>
    <item>
      <title>[resolved] tXMLMap is not working correctly with date fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232300#M22307</link>
      <description>Hi, 
&lt;BR /&gt;I am working TOS 551 and using xml data. I noticed an issue with xml date fields. See below example: 
&lt;BR /&gt;This simple job reads an xml file, uses the tXMLMap and outputs the data to the log. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBWu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153020i97ED02A9979E36DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBWu.png" alt="0683p000009MBWu.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Content of tFileInputXML. Nothing special done here. Just reading a testDate.xml file which contains a date field. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBkC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130297i448665723D394841/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBkC.png" alt="0683p000009MBkC.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;In the Map Editor I did an import from File and used my xsd file. 
&lt;BR /&gt;This simple xsd (also attached) contains an type="xs:date" field. 
&lt;BR /&gt;The result is shown below: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBkC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130297i448665723D394841/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBkC.png" alt="0683p000009MBkC.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;As you can see the data is not shown correctly. 
&lt;BR /&gt;Can you please explain what I am doing wrong or if this is a bug, can you please fix? 
&lt;BR /&gt;Looks like Talend is expecting a date always to be in format "dd-mm-yyyy" while the xml dat format is "yyyy-mm-dd". 
&lt;BR /&gt;I'm working around this by changing the date type in the xsd by the String type. 
&lt;BR /&gt;The xml: 
&lt;BR /&gt;&amp;lt;testDate xmlns:xsd="" xmlns:xsi=""&amp;gt; 
&lt;BR /&gt;&amp;lt;runDate&amp;gt;2014-09-27&amp;lt;/runDate&amp;gt; 
&lt;BR /&gt;&amp;lt;/testDate&amp;gt; 
&lt;BR /&gt;The xsd: 
&lt;BR /&gt;&amp;lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs=""&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;lt;xs:element name="testDate"&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xs:complexType&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xs:sequence&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xs:element type="xs:date" name="runDate"/&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xs:sequence&amp;gt; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xs:complexType&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;lt;/xs:element&amp;gt; 
&lt;BR /&gt;&amp;lt;/xs:schema&amp;gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/101535/testDate.zip.zip" target="_blank"&gt;testDate.zip.zip&lt;/A&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232300#M22307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-01T14:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tXMLMap is not working correctly with date fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232301#M22308</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;By default, the date pattern of a Date column is "
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;dd-MM-yyyy&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;", you can change manually it to other format.&lt;/FONT&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 02 Dec 2014 01:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232301#M22308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-02T01:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tXMLMap is not working correctly with date fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232302#M22309</link>
      <description>Thanks Shong. But I believe that is not possible when reading a date from an xml file. 
&lt;BR /&gt;Please show me where I can change it. 
&lt;BR /&gt;See attached screenshot. 
&lt;BR /&gt;On the top left you'll see the xml tree. I can't change it there. On the bottom left you'll see that the type is document. On the right I can change the 
&lt;B&gt;output &lt;/B&gt;format of the date. If I change that into "yyyy-MM-dd" I just get the result: "0033-03-06" while the input-date was: "2014-09-27"! 
&lt;BR /&gt; 
&lt;BR /&gt;regards, Martin 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBkH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144823iADA68BA53F7AE821/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBkH.png" alt="0683p000009MBkH.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 02 Dec 2014 15:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232302#M22309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-02T15:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tXMLMap is not working correctly with date fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232303#M22310</link>
      <description>Hi 
&lt;BR /&gt;Click 
&lt;B&gt;Tree schema editor&lt;/B&gt; tab, and then you are able to modify all columns! 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 03 Dec 2014 01:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232303#M22310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-03T01:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tXMLMap is not working correctly with date fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232304#M22311</link>
      <description>Shong, 
&lt;BR /&gt;Cool! I totally missed that extra tab. 
&lt;BR /&gt;This indeed solves the issues. 
&lt;BR /&gt;Thanks, Martin</description>
      <pubDate>Thu, 04 Dec 2014 14:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232304#M22311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-04T14:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tXMLMap is not working correctly with date fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232305#M22312</link>
      <description>Created account just so I could give you Kudo. Can't say how many hours I have spent before I stumbled into this solution... 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; I had date in XML file "2018-04-14T09:10:20.88" and the error message was Unparseable Date when I tried to execute Job</description>
      <pubDate>Tue, 17 Apr 2018 21:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tXMLMap-is-not-working-correctly-with-date-fields/m-p/2232305#M22312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-17T21:52:49Z</dc:date>
    </item>
  </channel>
</rss>

