We want developed an utility in our Java Web application which can compare two text / XML files.

Currently we have done it by using org.custommonkey.xmlunit.DetailedDiff and with the mix of DOM parsers.
But this needs lots of programming and fails for complex XMLs where lots of changes in sequence are involved.

To achieve better results currently we are trying com.a7soft.examxml;
but this is also giving differences in a file and not able to highlight two XMLs.

Has anybody tried building such utility?
We are okay to invoke a third party tool using java.
and then this tool can show differences in our XMLs, something similar to invoking excel from Java.

Any help in this matter is highly appreciated.