code: public Document generateXml(I_CmsXmlConfiguration configuration) {
  
          // create a new document
          Document result = DocumentHelper.createDocument();
  
          // set the document type
          DOMDocumentType docType = new DOMDocumentType();
          docType.setElementName(N_ROOT);
          docType.setSystemID(configuration.getDtdUrlPrefix() + configuration.getDtdFilename());
          result.setDocType(docType);
  
          Element root = result.addElement(N_ROOT);
          // start the XML generation
          configuration.generateXml(root);
  
          // return the resulting document
          return result;
      }
docs: Creates the XML document build from the provided configuration.<p>
  
  @param configuration the configuration to build the XML for
  @return the XML document build from the provided configuration