What do you mean by the "same physical configuration"? Can you give an XML example? When I need to compare two XML files, I usually standardize them somehow (xmllint --c14n | xmllint --format) and then run a normal diff. You might need to replace the IDs on the standardized files.