compare two unordered xmls using XSLT
843834Mar 6 2008 — edited Mar 10 2008I have to compare to unordered xml files.
most of the tools/code available consider the xml files as ordered and then compare.
i tried jexamxml and many such tools.. but not satisfying.
I have an XSLT which compares the xml file after sorting them.
But from java we pass an XML file and an XSLT to transform()
i.e
Transformer trans = transFact.newTransformer(xsltSource);
trans.transform(xmlSource, new StreamResult(System.out));
I was wondering if there is any work around so that i can apply the XSL to compare the xmls.
transform doesn't support this .. but still if some one can sujjest a work around it would be a great help.
Thanks in Advance
Vyas