code: @Override
      public void writeDefaultNamespace(String nsURI)
          throws XMLStreamException
      {
          if (!mStartElementOpen) {
              throwOutputError(ERR_NSDECL_WRONG_STATE);
          }
          // 27-Mar-2007, TSa: Apparently TCK expects a binding to be added
          setDefaultNamespace(nsURI);
          doWriteDefaultNs(nsURI);
      }
docs: public void writeEndElement() throws XMLStreamException