On Fri, 2002-04-26 at 08:19, James Strachan wrote:
> Hi Donald
>
> I can't see anything wrong with the code. Could it be that NodeComparator
> compares the names of hte documents as well? (A document has a name). Maybe
> we should patch NodeComparator to not use the document name in the
> comparison.
why do documents have names? do documents have any other attributes
which are not serialized as xml?
> You can test if this is the issue by....
>
> Document doc1 = ...;
> Document doc2 = ...;
>
> doc1.setName( "foo" );
> doc2.setName( "foo" );
>
> if ( comparator.compareTo( doc1, doc2 ) != 0 ) {
ha ha! no, it actually made things worse! before,
comparator.compare(doc1, doc2) returned 1. now, it returns 6 (?!)
along these same lines, is there a diff utility for dom4j? any interest
in one?
- donald
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user