[QTI] Processing itemBody sample code

Clarence Klopfstein cklopfstein at gmail.com
Fri Apr 18 03:52:29 BST 2008


Is their a good bit of sample code somewhere processing an itemBody?

Not understanding how I can get the inner XHTML in the itemBody without also
grabbing the embedded xml tags.  Using the choice.xml as a sample...

<itemBody>
        <p>Look at the text in the picture.</p>
        <p>
            <img src="images/sign.png" alt="NEVER LEAVE LUGGAGE
UNATTENDED"/>
        </p>
        <choiceInteraction responseIdentifier="RESPONSE" shuffle="false"
maxChoices="1">
            <prompt>What does it say?</prompt>
            <simpleChoice identifier="ChoiceA">You must stay with your
luggage at all times.</simpleChoice>
            <simpleChoice identifier="ChoiceB">Do not let someone else look
after your luggage.</simpleChoice>
            <simpleChoice identifier="ChoiceC">Remember your luggage when
you leave.</simpleChoice>
        </choiceInteraction>
    </itemBody>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /public/ims-qti/attachments/20080417/46d81991/attachment.html


More information about the IMS-QTI mailing list