public static boolean isSimilar ( final String expected , final String actual ) { final Diff diff = createDiffResult ( expected , actual , true ) ; return diff . similar ( ) ; }
This method will compare both XMLs and WILL NOT validate its attribute order .