There are several threads on the is and the developer list that talk about this same topic. I think I was the last one to bring it up though. I ended up writing my own deep compare code that was based heavily on some of the code I found on this list. I have long since lost the reference to the posting I based my code on.
However, I have attached the class I wrote to do the comparison. it is fairly heavily commented. it is slanted slightly to fit my needs, but can easily be made more generic to handle any XmlObject. Let me know if it helps you out or if you improve it and I will role any edits in to my local code. Ideally this would be a class included in the xbean.jar. Jon ============================================ Jonathan O. Baker The MITRE Corporation Email: [EMAIL PROTECTED] >-----Original Message----- >From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jan Torben Heuer >Sent: Tuesday, November 20, 2007 10:26 AM >To: [email protected] >Subject: xmlobject equals xmlobject? > >Hi, > >is there an easy way to compare two XmlObject instances? For example: > ><tag> > <name>horst</name> > <image src="" alt="" /> ></tag> > >should equal: > ><tag> > <image alt="" src="" /> > <name>horst</name> ></tag> > >However, my structure is much more comlex, I'd need some kind >of recursive >equals... > > > >Jan > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >
XBeanCompare.java
Description: XBeanCompare.java
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

