fix bugs in xmldiffer