Document doc = DocumentHelper.parseText(xmlContent);
Iterator it = doc.getRootElement().elementIterator("test");
while(it.hasNext()){
Element testElem = (Element)it.next();
BCHCode code = BCHCodeFactory.getBCHCode(Integer.valueOf(testElem.element("code").attributeValue("codewordSize")),
Integer.valueOf(testElem.element("code").attributeValue("infoSize")));
if(null == code){
continue;
}
Test currentTest = new Test();