code: public static String serialize(Element element) {
          StringWriter sw = new StringWriter();
          serialize(new DOMSource(element), sw);
          return sw.toString();
      }
docs: Return a pretty String version of the Element.
  
  @param element the Element to serialize
  @return the pretty String representation of the Element