code: public static void writeConsoleWithDocType(Document ele, Writer out)
      throws IOException {
          XMLSerializer serializer =
                  new XMLSerializer(out, CONSOLE_WITH_DOCTYPE);
          serializer.serialize(ele);
      }
docs: This method is used in object conversion.
  None of the standard formats --
  FOXML, METS, ATOM -- have DOCTYPE declarations,
  so the inability of XSLT to propagate that
  information is probably irrelevant. However, the
  line wrapping issue remains.
  
  method: "XML"
  charset: "UTF-8"
  indenting: TRUE
  indent-width: 2
  line-width: 80
  preserve-space: FALSE
  omit-XML-declaration: FALSE
  omit-DOCTYPE: FALSE
  @param ele
  @param out
  @throws IOException