code: public static Document createDOMDocument()
      {
          try {
              return DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
          } catch (ParserConfigurationException ex) {
              LOGGER.error("Cannot create DOM Documents", ex);
              return null;
          }
      }
docs: Construct a new (empty) DOM Document and return it.
  
  @return an empty DOM Document