Follow

problem with jaxb and schema file imsqti_v2p1.xsd

Avatar

Hello,

I'm trying to use jaxb with the schema file imsqti_v2p1.xsd but there were many errors when parsing the file. The output result was the following:

[ERROR] 'lang' is already defined
  line 93 of http://www.w3.org/2001/03/xml.xsd
[ERROR] (related to above error) the first definition appears here
  line 43 of http://www.w3.org/2001/xml.xsd
[ERROR] 'space' is already defined
  line 102 of http://www.w3.org/2001/03/xml.xsd
[ERROR] (related to above error) the first definition appears here
  line 89 of http://www.w3.org/2001/xml.xsd
[ERROR] 'base' is already defined
  line 109 of http://www.w3.org/2001/03/xml.xsd
[ERROR] (related to above error) the first definition appears here
  line 113 of http://www.w3.org/2001/xml.xsd
[ERROR] 'specialAttrs' is already defined
  line 117 of http://www.w3.org/2001/03/xml.xsd
[ERROR] (related to above error) the first definition appears here
  line 157 of http://www.w3.org/2001/xml.xsd

[ERROR] 'lang' is already defined  line 93 of http://www.w3.org/2001/03/xml.xsd
[ERROR] (related to above error) the first definition appears here  line 43 of http://www.w3.org/2001/xml.xsd
[ERROR] 'space' is already defined  line 102 of http://www.w3.org/2001/03/xml.xsd
[ERROR] (related to above error) the first definition appears here  line 89 of http://www.w3.org/2001/xml.xsd
[ERROR] 'base' is already defined  line 109 of http://www.w3.org/2001/03/xml.xsd
[ERROR] (related to above error) the first definition appears here  line 113 of http://www.w3.org/2001/xml.xsd
[ERROR] 'specialAttrs' is already defined  line 117 of http://www.w3.org/2001/03/xml.xsd
[ERROR] (related to above error) the first definition appears here  line 157 of http://www.w3.org/2001/xml.xsd

Did anybody have the same problem? How can I solve it? Because I googled it but they suggested me to use xmlbeans, which I can't because I have everything with jaxb.

Regards.

Matias.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk