On Jul 8, 12:04 pm, Charlie Savage <[EMAIL PROTECTED]> wrote: > > Hmmm... How does the C library itself handle comparison? > > Well, in C the == is identity (comparing pointer addresses). libxml > does not provide an equality method that I see.
So there is no way to compare on content, only identity. But is that good for Ruby too? I wonder how changing #== to identity might effect current users? Even so, I agree that comparing raw xml strings doesn't makes sense, but comparing equivalence, as opposed to identity, can be useful, ie. same tag names, same attributes (irregardless of order) and same data. Otherwise it would seem like we are suggesting that XML nodes should be immutable. T. _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel