String title = el_assess.attributeValue("title");
if (title != null) addFormElement("qti.title", new StaticTextElement("qti.title", title));
else addFormElement("qti.title", new StaticTextElement("qti.title", "-"));
// extract objectives
HTMLTextAreaElement htmlTA = new HTMLTextAreaElement("qti.objectives", 10, 60);
htmlTA.setReadOnly(true);
Element el_objectives = (Element)doc.selectSingleNode("//questestinterop/assessment/objectives");
if (el_objectives != null) {
Element el_mat = (Element)el_objectives.selectSingleNode("material/mattext");
if (el_mat != null)
htmlTA.setValue(el_mat.getTextTrim());
} else htmlTA.setValue("-");
addFormElement("qti.objectives", htmlTA);
// extract num of questions
List items = doc.selectNodes("//item");
if (items.size() > 0)