Class CmsXmlPageConverter

java.lang.Object
org.opencms.importexport.CmsXmlPageConverter

@Deprecated public final class CmsXmlPageConverter extends Object
Deprecated.
no longer in use
Converts legacy pages (OpenCms 5 and earlier) to XML pages (OpenCms 6).

Since:
6.0.0
  • Method Details

    • convertToXmlPage

      public static CmsXmlPage convertToXmlPage(CmsObject cms, byte[] content, Locale locale, String encoding) throws CmsImportExportException, CmsXmlException
      Deprecated.
      Converts the contents of a page into an xml page.

      Parameters:
      cms - the cms object
      content - the content used with xml templates
      locale - the locale of the body element(s)
      encoding - the encoding to the xml page
      Returns:
      the xml page content or null if conversion failed
      Throws:
      CmsImportExportException - if the body content or the XMLTEMPLATE element were not found
      CmsXmlException - if there is an error reading xml contents from the byte array into a document