code: public static String createDocument(Locale locale, String encoding) {
  
          try {
              return CmsXmlUtils.marshal(createDocument(locale), encoding);
          } catch (CmsXmlException e) {
              // this should never happen
              LOG.error(Messages.get().getBundle().key(Messages.ERR_XML_PAGE_FACT_CREATE_DOC_0), e);
              return null;
          }
      }
docs: Creates a valid XML page String representation,
  containing one empty element in the given locale.<p>
  
  @param locale the locale to create the XML page for
  @param encoding the encoding to use when creating the String from the XML
  
  @return a valid XML page document as a String