Class CmsXmlPage

  • All Implemented Interfaces:
    I_CmsXmlDocument

    public class CmsXmlPage
    extends A_CmsXmlDocument
    Implementation of a page object used to access and manage xml data.

    This implementation consists of several named elements optionally available for various languages. The data of each element is accessible via its name and language. The content of each element is stored as CDATA, links within the content are processed and are separately accessible as entries of a CmsLinkTable.

    Since:
    6.0.0
    • Constructor Detail

      • CmsXmlPage

        public CmsXmlPage​(org.dom4j.Document document,
                          java.lang.String encoding)
        Creates a new CmsXmlPage based on the provided document and encoding.

        The encoding is used for marshalling the XML document later.

        Parameters:
        document - the document to create the CmsXmlPage from
        encoding - the encoding of the xml page
      • CmsXmlPage

        public CmsXmlPage​(java.util.Locale locale,
                          java.lang.String encoding)
        Creates an empty XML page in the provided locale using the provided encoding.

        The page is initialized according to the minimal necessary xml structure. The encoding is used for marshalling the XML document later.

        Parameters:
        locale - the initial locale of the XML page
        encoding - the encoding of the XML page