这里有一篇关于同样主题的有用论文:http://pdf.aminer.org/000/301/327/x_diff_an_effective-change-detection-algorithm-for-xml-documents.pdf 以下是一个可以尝试的工具:http://www.cs.hut.fi/~ctl/3dm/ 你还可以找到上述工具的Java源代码,这可能会非常有用。