code: public void reset()
      {
          if (mNsCount > 0) {
              mNamespaceBuilder.reset();
              mDefaultNsDeclared = false;
              mNsCount = 0;
          }
  
          /* No need to clear attr name, or NS prefix Strings; they are
           * canonicalized and will be referenced by symbol table in any
           * case... so we can save trouble of cleaning them up. This Object
           * will get GC'ed soon enough, after parser itself gets disposed of.
           */
          if (mAttrCount > 0) {
              mValueBuilder.reset();
              mAttrCount = 0;
              if (mXmlIdAttrIndex >= 0) {
                  mXmlIdAttrIndex = XMLID_IX_NONE;
              }
          }
          /* Note: attribute values will be cleared later on, when validating
           * namespaces. This so that we know how much to clean up; and
           * occasionally can also just avoid clean up (when resizing)
           */
      }
docs: Method called to allow reusing of collector, usually right before
  starting collecting attributes for a new start tag.
  <p>
  Note: public only so that it can be called by unit tests.