code: @Override
  	public void writeStartElement(StartElement elem)
          throws XMLStreamException
      {
          QName name = elem.getName();
          writeStartElement(name.getLocalPart());
          @SuppressWarnings("unchecked")
          Iterator<Attribute> it = elem.getAttributes();
          while (it.hasNext()) {
              Attribute attr = it.next();
              name = attr.getName();
              writeAttribute(name.getLocalPart(), attr.getValue());
          }
      }
docs: /*
  //////////////////////////////////////////////////
  Package methods:
  //////////////////////////////////////////////////