* @see org.olat.ims.qti.editor.beecom.IParser#parse(org.dom4j.Element)
*/
public Object parse(Element element) {
//assert element.getName().equalsIgnoreCase("qtimetadata");
Metadata meta = new Metadata();
List metadatafields = element.selectNodes("./qtimetadatafield");
for (Iterator iter = metadatafields.iterator(); iter.hasNext();) {
Element metadatafield = (Element) iter.next();
String key = metadatafield.elementText("fieldlabel");
String value = metadatafield.elementText("fieldentry");
meta.setField(key, value);
}
return meta;
}