public Difference<BaseType> compareNodes(BaseType node1, BaseType node2)
            throws InvalidArrayIdentity, DuplicateArrayIdentity {
        return compareNodes(new ArrayList<String>(), node1, new ArrayList<String>(), node2);
    }
public Difference < BaseType > compareNodes ( BaseType node1 , BaseType node2 ) throws InvalidArrayIdentity , DuplicateArrayIdentity { return compareNodes ( new ArrayList < String > ( ) , node1 , new ArrayList < String > ( ) , node2 ) ; }
Compares two documents and returns the difference