code: @Override
      public void writeAttribute(String nsURI, String localName, String value)
          throws XMLStreamException
      {
          // No need to set mAnyOutput, nor close the element
          if (!mStartElementOpen) {
              throwOutputError(ErrorConsts.WERR_ATTR_NO_ELEM);
          }
          doWriteAttr(localName, nsURI,
  		    findOrCreateAttrPrefix(null, nsURI, mCurrElem),
                      value);
      }
docs: public void writeAttribute(String localName, String value)