
140 DB2 II and WPS Synergy
NodeList reportElemList;
// Go down the tree
for (int i=0;i<reportList.getLength();i++){
Node report = reportList.item(i);
reportElemList = report.getChildNodes();
// Go trough each report from the tree
for (int j=0;j<reportElemList.getLength();j++){
Node elem = reportElemList.item(j);
// If we have an incidentID TAG
if(elem.getNodeName().equals("IncidentID")){
// Check in the hashtable if we have to add it
if(ht.containsKey(elem.getFirstChild().getNodeValue())){
Incident inc = (Incident) ht.get(elem.getFirstChild()
.getNodeValue());
// Then copy the data
for (int k=0;k<reportElemList.getLength();k++) ...