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
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.
Comments
Hi Matias,
I haven't heard of anybody else trying to parse the IMS QTI descriptor file. It sounds like IMS didn't produce something that is very friendly to a lot of parsers. We've seen similar problems with a lot of XSDs produced for standards...they are technically correct, but they don't work well in parsers. Out of curiosity, what is it you're trying to do with that file?
Mike
I'm trying to use it to map xml files to java objects, so that I can handle the logic with java.I needed it because in the source code there's an implementation of that xml mapping but it's failing.
You said that you haven't heard of anybody trying to parse the IMS QTI descriptor file, isn't it needed for the scorm implementation?
I'm trying to use it to map xml files to java objects, so that I can handle the logic with java.I needed it because in the source code there's an implementation of that xml mapping but it's failing.
You said that you haven't heard of anybody trying to parse the IMS QTI descriptor file, isn't it needed for the scorm implementation?
Thank you for your answer!
No, QTI isn't a part of SCORM. Some SCORM packages might happen to use QTI, but it is not a requirement. Where are you seeing that?
I'm seeing it in the java project of our scorm implementation. As I have a problem in that part, that's the reason of my question.
But if you say it's not necessary I have to figure out why is it in the project. The guy who did it, doesn't remember so much right now (project is almost 5 years old and he told me that may be it's related to the question resource of the manifest).