How to use XML Access to export and import portal pages
Applies to
HCL Digital Experience version 9.5 and higher
Introduction
XML Access (XML Configuration Service) is a command-line batch utility that you can use to export and import portal configurations. You can export specific pages, partial configurations, or complete environments from one portal to another.
By default, HCL DX provides a set of standard XML samples with the installation binaries. You can find these samples in the following directory:
<PortalServer_root>/doc/xml-samples
You can use XML Access to:
- Transfer all or part of a portal configuration, including user data, from one system to another.
- Back up the configuration of specific environments before applying new configurations.
- Update existing portlets when a new WAR file is provided by development.
- Overwrite artifacts or resources on the target system with the values defined in the XML file.
- Create missing objects that are defined in the XML file but not present in the target system.
- Simplify duplication of a portal environment from one server to another.
- Update pages and portlets without losing user customizations. Customizations are retained because object IDs remain unchanged.
Instructions
This section explains how to use XML Access to export and import portal pages. The example shows how to export the Home portal page, delete it, and then restore it by importing the previously exported XML file.
-
Sign in to the HCL DX server as an administrator.
-
Go to Administration > Portal User Interface > Content Root.
-
Select the Export Page icon for the Home portal page.
-
In the pop-up window, select Yes to export the page hierarchy for the Home portal page.
-
Select Save to download the exported file to your local system.
Note
The downloaded XML file (
pageExport.xml) contains all the information required to restore the Home portal page later. -
Delete the Home page by selecting the Delete icon.
-
In the confirmation dialog, select OK to confirm deletion of the Home page and all its subpages.
-
Verify that the Home page no longer appears in the Open Site Menu.
-
To recreate the Home portal page, import the previously exported XML file.
Go to Administration > Portal Settings > Import XML, then select Browse and Import.
-
Wait for the success message that confirms the import process completed successfully.
