<?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 Validate XML file with XSD in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Validate-XML-file-with-XSD/m-p/2248582#M33395</link>
    <description>Hi,
&lt;BR /&gt;My job is validating an XML file with an XSD as following : tXSDValidator---&amp;gt;tMap---&amp;gt;tFileOutputDelimited. It works fine.
&lt;BR /&gt;Unfortunately, when the XML file is invalid, the tFileOutputDelimited contains no information about the problem I have in my XML file but only that the XML file is invalid ("file aaa.xml is invalid!"). Even if this information is important for me to log, I need to know more. As the size of my XML file will increase soon, I want to use my job to give me information about what is wrong and thus spend as less time as possible searching what's wrong with my XML file.
&lt;BR /&gt;In the properties of the tXSDValidator I've seen that, when I check the "Print to console" checkbox, I have the information I need in the console. Unfortunately I don't know how to retrieve it. So I see 2 options : 
&lt;BR /&gt;- either there is a way to read the message printed in the console and to write it into a file,
&lt;BR /&gt;- or there is an option in the tXSDValidator that allows to know what is wrong in the XML file.
&lt;BR /&gt;Is one of this option possible ? Any other idea how to resolve my problem ?
&lt;BR /&gt;Thanks in advance</description>
    <pubDate>Sat, 16 Nov 2024 13:17:13 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2024-11-16T13:17:13Z</dc:date>
    <item>
      <title>Validate XML file with XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-XML-file-with-XSD/m-p/2248582#M33395</link>
      <description>Hi,
&lt;BR /&gt;My job is validating an XML file with an XSD as following : tXSDValidator---&amp;gt;tMap---&amp;gt;tFileOutputDelimited. It works fine.
&lt;BR /&gt;Unfortunately, when the XML file is invalid, the tFileOutputDelimited contains no information about the problem I have in my XML file but only that the XML file is invalid ("file aaa.xml is invalid!"). Even if this information is important for me to log, I need to know more. As the size of my XML file will increase soon, I want to use my job to give me information about what is wrong and thus spend as less time as possible searching what's wrong with my XML file.
&lt;BR /&gt;In the properties of the tXSDValidator I've seen that, when I check the "Print to console" checkbox, I have the information I need in the console. Unfortunately I don't know how to retrieve it. So I see 2 options : 
&lt;BR /&gt;- either there is a way to read the message printed in the console and to write it into a file,
&lt;BR /&gt;- or there is an option in the tXSDValidator that allows to know what is wrong in the XML file.
&lt;BR /&gt;Is one of this option possible ? Any other idea how to resolve my problem ?
&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Sat, 16 Nov 2024 13:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-XML-file-with-XSD/m-p/2248582#M33395</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Validate XML file with XSD</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-XML-file-with-XSD/m-p/2248583#M33396</link>
      <description>Have you tried ((String)globalMap.get("tXSDValidator_1_ERROR_MESSAGE")) ?&lt;BR /&gt;I think you can use an "If" link based on the value of tXSDValidator_1_VALID and then write tXSDValidator_1_ERROR_MESSAGE in your file / console.&lt;BR /&gt;Ektor</description>
      <pubDate>Mon, 20 Sep 2010 17:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-XML-file-with-XSD/m-p/2248583#M33396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-20T17:35:25Z</dc:date>
    </item>
  </channel>
</rss>

