From: "ara.t.howard" Date: 2009-03-24T07:42:28+09:00 Subject: Re: comparing xml On Mar 23, 2009, at 3:42 PM, Phlip wrote: > I should have explored that. Isn't the code simply printing out both > XMLs, with consistent blanks and indenting, and then comparing their > strings for pure equality? it *is* comparing strings, but strings built up inside rexml using the approach you outlined. > If so, would that break over details like attributes out of order? ah - good catch - i'll check on that. my alternate approach, comparing xmlsimple data structures will not, i believe, suffer from that, but i wanted to avoid a dependancy. i'll check and report back cheers. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama