XML configuration interface and content associations | HCL Digital Experience
With the XML configuration interface (xmlaccess command), you can perform batch updates of content associations or export associations to import into another portal. Content association information is represented in the XML configuration schema by content-mapping-info elements.
Export content associations
The content associations for a web content page are represented in an XML export file as nested content-mapping-info elements.
<content-node action="update" content-parentref="6_000000000000000000000000A0" domain="rel" objectid="someOID" preserve-old-layout="true" type="label">
<content-mapping-info>
<content-mapping content-id="74-11" default="false"/>
<content-mapping content-id="007" default="true" delegated-access-level="User"/>
</content-mapping-info>
</content-node>
Import content associations
When importing content associations with an XML import file, associations for a web content page are represented in the content-mapping-info element for the web content page. Any content associations that are already defined for the web content page are removed when you perform the import process and replaced with the new associations.
<content-node action="update" content-parentref="6_000000000000000000000000A0" domain="rel" objectid="someOID" preserve-old-layout="true" type="label">
<content-mapping-info>
<content-mapping content-id="74-11" default="false" />
<content-mapping content-id="007" default="true" delegated-access-level="User"/>
</content-mapping-info>
</content-node>
Delete content associations
You can delete content associations by specifying an empty content-mapping-info element in the XML import file.
<content-node action="update" content-parentref="6_000000000000000000000000A0" domain="rel" objectid="someOID" preserve-old-layout="true" type="label">
<content-mapping-info/>
</content-node>