Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

compare two unordered xmls using XSLT

843834Mar 6 2008 — edited Mar 10 2008
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2008
Added on Mar 6 2008
1 comment
422 views