<?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 NullPointerException with xsd validation and xml in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-with-xsd-validation-and-xml/m-p/2373071#M135835</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;I have a big problem and don´t know how to solve it. Maybe there is someone with some help.&lt;BR /&gt;I have a xsd-schema in which I have some fields with a minOccurs = 0 attribute. xsd-Validation is no problem and 100% working.&lt;BR /&gt;If there is the minOccurs = 0 fields are missing the validation gets to "valid" because the xsd-schema describes it.&lt;BR /&gt;&lt;BR /&gt;But, after that I have to work with the xml-file and my tFileInputXML-component needs to have a static schema for the xml-file.&lt;BR /&gt;If there is tag missing, what is okay for xsd-validation, the component throws a "NullPointerException". I think it can´t be that I´m the only one with such a problem.&lt;BR /&gt;&lt;BR /&gt;So what I´ve done:&lt;BR /&gt;- Validate the xml-file against the xsd-Validation component&lt;BR /&gt;- if validation got okay, the xml-should be loaded into my database&lt;BR /&gt;- so I´ve created xml-Metadata with using xsd-schema&lt;BR /&gt;- using this schema, needs that the xml-file coming that they have a full schema described in the xsd-schema&lt;BR /&gt;&lt;BR /&gt;Loading the xml-file without having a minOccurs = 0 Tag in the xml-file throws directly a "NullPointerException". The question is, how is it possible to declare all minOccurs = 0 tags and blocks as optional for the xml-schema I have to use, or how is it possible to fetch the "NPE"?&lt;BR /&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2016 08:56:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-07T08:56:35Z</dc:date>
    <item>
      <title>NullPointerException with xsd validation and xml</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-with-xsd-validation-and-xml/m-p/2373071#M135835</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I have a big problem and don´t know how to solve it. Maybe there is someone with some help.&lt;BR /&gt;I have a xsd-schema in which I have some fields with a minOccurs = 0 attribute. xsd-Validation is no problem and 100% working.&lt;BR /&gt;If there is the minOccurs = 0 fields are missing the validation gets to "valid" because the xsd-schema describes it.&lt;BR /&gt;&lt;BR /&gt;But, after that I have to work with the xml-file and my tFileInputXML-component needs to have a static schema for the xml-file.&lt;BR /&gt;If there is tag missing, what is okay for xsd-validation, the component throws a "NullPointerException". I think it can´t be that I´m the only one with such a problem.&lt;BR /&gt;&lt;BR /&gt;So what I´ve done:&lt;BR /&gt;- Validate the xml-file against the xsd-Validation component&lt;BR /&gt;- if validation got okay, the xml-should be loaded into my database&lt;BR /&gt;- so I´ve created xml-Metadata with using xsd-schema&lt;BR /&gt;- using this schema, needs that the xml-file coming that they have a full schema described in the xsd-schema&lt;BR /&gt;&lt;BR /&gt;Loading the xml-file without having a minOccurs = 0 Tag in the xml-file throws directly a "NullPointerException". The question is, how is it possible to declare all minOccurs = 0 tags and blocks as optional for the xml-schema I have to use, or how is it possible to fetch the "NPE"?&lt;BR /&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 08:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-with-xsd-validation-and-xml/m-p/2373071#M135835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-07T08:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException with xsd validation and xml</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NullPointerException-with-xsd-validation-and-xml/m-p/2373072#M135836</link>
      <description>Hi,&lt;BR /&gt;Could you please post your job setting screenshots into forum?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 08 Nov 2016 03:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NullPointerException-with-xsd-validation-and-xml/m-p/2373072#M135836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-08T03:36:35Z</dc:date>
    </item>
  </channel>
</rss>

