fixing errors in comparing xmls