code: @Override
      public boolean isDeclared(int index)
      {
          if (index < mAttrCount) {
              if (index >= 0) {
                  // !!! TODO: implement properly
                  return true;
              }
          } else {
              index -= mAttrCount;
              if (index < mNsCount) {
                  /* DTD and namespaces don't really play nicely together;
                   * and in general xmlns: pseudo-attributes are not declared...
                   * so not quite sure what to return here. For now, let's
                   * return true, to indicate they ought to be valid
                   */
                  return true;
              }
          }
          throwNoSuchAttribute(index);
          return false; // never gets here
      }
docs: /*
  ///////////////////////////////////////////////////
  Attributes2 (SAX2) implementation
  ///////////////////////////////////////////////////