if (hasXML11RestrictedChars) writeEncodedWithRestrictedChars(value, true); else
  public void writeAttribute(String localName, String value)    throws XMLStreamException  {    if (!inStartElement)      throw new IllegalStateException();    try      {        writer.write(' ');        writer.write(localName);        writer.write('=');        writer.write('"');        writeEncoded(value, true);        writer.write('"');      }    catch (IOException e)      {        XMLStreamException e2 = new XMLStreamException(e);        e2.initCause(e);        throw e2;      }  }