code: public static String convertDOMToXML(Node doc)
      {
          StringWriter out = new StringWriter();
          Util.convertDOMToXML(doc, out);
          return out.toString();
      }
docs: Send this document as text to this output stream.
  @param doc
  @return The converted XML