CompareXML is a fast, lightweight and feature-rich tool that will solve your XML/HTML comparison or diffing needs. its purpose is to compare two instances of Nokogiri::XML::Node or Nokogiri::XML::NodeSet for equality or equivalency.
This gem was actually written over 8 years ago, back when I was a rookie developer. If you're up for it, I'd love a pull request to resolve this issue.