code: public static void writeElement(Element e, XMLStreamWriter writer, boolean repairing)
          throws XMLStreamException {
          writeElement(e, writer, repairing, true);
      }
docs: Writes an Element to an XMLStreamWriter. The writer must already have
  started the document (via writeStartDocument()). Also, this probably
  won't work with just a fragment of a document. The Element should be the
  root element of the document.
  
  @param e
  @param writer
  @throws XMLStreamException