[jdom-interest] how to compare 2 xml instances

Alex Rosen arosen at novell.com
Tue Dec 10 17:28:46 PST 2002


You'll have to write your own comparison routine that walks the two XML trees, comparing things that you consider relevant and ignoring things that you don't.

Alex

>>> "Madrona, Robert" <robert.madrona at cgey.com> 12/10/02 04:43AM >>>
Hi,
 
I would like to compare if 2 xml iinstances are identical.
I noticed Element.equals() implements identity comparaison.
Is there such feature in JDOM?
My need is to compare the whole DOM trees from XML files generated by different tools
Especially I would like to ignore:
- tabs
- CR
- comments,
- some processing instructions, 
 
Thanks. 




More information about the jdom-interest mailing list