list = doc.getElementsByTagName("test");
for (int i=0;i<list.getLength();i++) {
Element e = (Element) list.item(i);
NodeList nl = e.getChildNodes();
TestInformation ti = new TestInformation();
String testName = "";
for (int j=0;j<nl.getLength();j++) {
String nodeName = nl.item(j).getNodeName();
if("test-name".equals(nodeName.trim())) {
Node el = (Node)nl.item(j);
testName = el.getFirstChild().getNodeValue().trim();
}
if ("test-class".equals(nodeName.trim())) {
Node el = (Node) nl.item(j);
ti.setClassName(el.getFirstChild().getNodeValue().trim());
}
if ("minimum-version".equals(nodeName.trim())) {
Node el = (Node) nl.item(j);
ti.setMinimumVersion(el.getFirstChild().getNodeValue().trim());
}
if ("maximum-version".equals(nodeName.trim())) {
Node el = (Node) nl.item(j);
ti.setMaximumVersion(el.getFirstChild().getNodeValue().trim());
}
}
testCases.put(testName,ti);
}
} catch (ParserConfigurationException e) {