From: Phlip Date: 2009-03-24T09:26:57+09:00 Subject: Re: comparing xml ara.t.howard wrote: > On Mar 23, 2009, at 5:07 PM, Phlip wrote: > >> I caught it because I just recently solved a subset of your problem. >> assert_xhtml uses Nokogiri to match a subset of HTML within a page. >> The code is too weird for you to use, but I indeed had to defeat all >> the issues you will encounter! > > next version is up > > http://gist.github.com/83721 2kewt. Now you are using XmlSimple.==, so it will walk the object model for you, recursively. It takes care of the attribute order issue, and you then only need to tell XmlSimple to normalize blanks. What about excess spaces in attributes? And what about class='foo bar' matching class='bar foo'? (Feel free to ignore them!..)