This method can be used to compare two NodeSet instances. By using XML::NodeSet#equal_nodes?() the need for exposing the "nodes" instance variable is also removed.