code: protected boolean isEqual(CharIterator charIterator1, CharIterator charIterator2, XmlCompareMode mode) {
  
      CharIterator c1, c2;
      if (mode.isNormalizeSpaces()) {
        c1 = new SpaceNormalizingCharIterator(charIterator1);
        c2 = new SpaceNormalizingCharIterator(charIterator2);
      } else {
        c1 = charIterator1;
        c2 = charIterator2;
      }
      return compare(c1, c2);
    }
docs: This method determines if the given {@link CharSequence}s are equal.
  
  @see #isEqual(Node, Node, XmlCompareMode)
  
  @param charIterator1 is the first {@link CharIterator}.
  @param charIterator2 is the second {@link CharIterator}.
  @param mode is the mode of comparison.
  @return {@code true} if equal, {@code false} otherwise.