code: @Override
      public boolean mayHaveNsDefaults(String elemPrefix, String elemLN)
      {
          mTmpKey.reset(elemPrefix, elemLN);
          DTDElement elem = mElemSpecs.get(mTmpKey);
          mCurrElem = elem;
          return (elem != null) && elem.hasNsDefaults();
      }
docs: Calling this method before {@link #checkNsDefaults} is necessary
  to pass information regarding the current element; although
  it will become available later on (via normal XMLValidator interface),
  that's too late (after namespace binding and resolving).