Error in example IMS CP: "XML Parsing Error: duplicate attribute"

Error in example IMS CP: "XML Parsing Error: duplicate attribute"

by Sacha Brostoff -
Number of replies: 1
Hello,

I've downloaded an example IMS Content Package (I believe which uses v1.1.4 of the spec) direct from IMS, and inserted it using "Add an IMS Content Package" from the resource dropdown*. It seems to have deployed mostly OK (very quick, looks great), BUT when I go to a particular page in the package - the "QTI Example" page, the following error message is displayed,

XML Parsing Error: duplicate attribute
Location: http://www.cmm.bris.ac.uk/lemma/file.php/15/moddata/resource/152/exmpldocs/QTI_Example/imsmanifest.xml
Line Number 5, Column 1:identifier="MANIFEST13-85D76736-6D19-9DC0-7C0B-57C31A9FD390"

Has anyone had this error before, or know how to fix/avoid it?

The example package is called cpv1p1p4cp.zip, and you can get it from:
http://www.imsglobal.org/specificationdownload.cfm

You need to register (for free) before you candownload anything. Then you get to drop down menus. Go to
Content Packaging > Content Packaging v1.1.4 Content Package

I'm assuming it's not actually an error in an 'official' example package from IMS, but rather it's the standard being a little ahead of moodle, just for the moment. Is this right?

Many thanks,

Sacha

* Moodle 1.9 + (Build: 20080306)
Average of ratings: -
In reply to Sacha Brostoff

Re: Error in example IMS CP: "XML Parsing Error: duplicate attribute"

by Niall Barr -
Hi,

The nested manifest for the QTI items seems to have an error in it - there are two identifier attributes in the manifest element. If you edit one of them out it should work I think.

Niall