try{
result1 = XMLTree.BuildTree(new FileInputStream(file),false,false);
result2 = XMLTree.BuildTree(new FileInputStream(getResultDirectory()+file.getName()),false, false);
if(result1 != null && result2 != null){
if(compareNodes(result1,result2)){
report.printdata("match","file",file.getName(),"");
}else{
report.printdata("resultChanged","file",file.getName(),"");
}
}else{
report.printdata("error","file",file.getName(),"");