|
From: Graham S. <l3...@ya...> - 2008-02-29 10:18:47
|
Hi All:
Below is a copy of emails from Fawaz.
Can anybody offer him more help?
Graham S
<Fawaz ("F. Ghali" <ana...@ho...>)>
Do you know any JAVA code to parse QTI files?
</Fawaz>
<Graham>
Not quite sure what you mean.
If you mean simply parsing the QTI XML files, then you can use a standard
Java Parser (either a SAX Parser or a DOM parser).
You can find information and example code in Chapters 5 and 6 of
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
Do you mean code to render the QTI xml as html (i.e. a fuller
implementation)?
There are one or two opensource locations with Java source code, but there
is not much yet in the way of documentation.
Look for example at:
http://sourceforge.net/projects/qtitools/
which has the JQTI code produced at Southampton University, and also my
own JAssess code.
As I say, there is not a great deal of explanation of the code yet. I
expect this to change in the near future.
The site:
http://qtitools.caret.cam.ac.uk/
is a good place to keep in touch with QTI developments (Look especially in
the Tools
link of the Main Menu).
Hope that helps
Graham Smith
</Graham>
<Fawaz>
Hi Graham,
Thanks for your reply.
Basically, what I want is to retrieve questions and answers from QTI ( as
items ) and store them in another XML file (none-QTI).
Using DOM or SAX will be a nightmare to do such job, especially if I don't
have QTI java implementation.
I looked at JQTI: http://jqti.qtitools.org/ which is exactly what I want
however I couldn't find it.
The link you sent: http://sourceforge.net/projects/qtitools/ has only
validater for QTI and does not do parsing.
I was hoping to find a parser to extract questions and answerers. That's
is really.
If you know how I can do it, then please advise.
Thanks.
Fawaz
<Fawaz>
<Graham>
Hi Fawaz:
I do not know of any existing code which will do the relatively restricted job that you want.
There is always a balance in effort between getting to understand
and adapting someone else's code and writing your own!
It seems that you are going to have to parse the XML,
and I suggested the DOM parser as a relatively simple system to do this.
The parser is standard Java: you do not need a QTI java implementation,
except perhaps as an example.
I will pass copies of this exchange of notes to a
QTI discussion group to see if anyone else can help
Graham
</Graham>
---------------------------------
Rise to the challenge for Sport Relief with Yahoo! for Good |