{ //get performance Variable IXml performance = webAppAccess.getVariables().getXml("performance"); //get list Variables List performanceList = performance.getChildren("Row"); List updateList = toUpdate.getChildren("ins:Row"); //iterate through updateList for (Iterator uIt = updateList.iterator(); uIt.hasNext();) { IXml uEntry = (IXml)uIt.next(); //for each entry in updateList, iterate through performanceList for (Iterator pIt = performanceList.iterator(); pIt.hasNext();) { IXml pEntry = (IXml)pIt.next(); //check to see if the entries in updateList and performanceList have the same name if (pEntry.findElement("Name").getText().equals(uEntry.findElement("Name").getText())) { //update the comments in the current entry for performanceList pEntry.findElement("Comments").setText(uEntry.findElement("Comments").getText()); } } } //set performance variable webAppAccess.getVariables().setXml("performance", performance); }