Package org.opencms.importexport
Class CmsXmlPageConverter
java.lang.Object
org.opencms.importexport.CmsXmlPageConverter
Deprecated.
no longer in use
Converts legacy pages (OpenCms 5 and earlier) to XML pages (OpenCms 6).
- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic CmsXmlPage
convertToXmlPage
(CmsObject cms, byte[] content, Locale locale, String encoding) Deprecated.Converts the contents of a page into an xml page.
-
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 objectcontent
- the content used with xml templateslocale
- 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 foundCmsXmlException
- if there is an error reading xml contents from the byte array into a document
-