XML configuration interface and content mappings
With xmlaccess.sh (xmlaccess command), you can perform batch updates of content mappings or export content mappings to import into another portal. Content mapping information is represented in the XML configuration schema by content-mapping-info elements.
Export content mappings
The content mappings for a Web content page are represented in an XML export file as nested content-mapping-info elements.The following example represents a Web content page with two content mappings:
<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>If no content-mapping-info elements are present in an XML export document, there are currently no content mappings defined for the Web content page.
Import content mappings
When importing content mappings with an XML import file, all content mappings for a particular Web content page are represented in the content-mapping-info element for the Web content page. Any content mappings that are already defined for the Web content page are removed when you perform the import and replaced with the new content mappings.The following example updates a Web content page to have two specific content mappings:
<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>If no content-mapping-info element is present in an XML import document, no changes are made to the content mappings currently defined for the Web content page.
Delete content mappings
You can delete content mappings by specifying an empty content-mapping-info element in the XML import file.The following example updates a Web content page to delete any defined content mappings:
<content-node action="update" content-parentref="6_000000000000000000000000A0" domain="rel" objectid="someOID" preserve-old-layout="true" type="label"> <content-mapping-info/> </content-node>
Parent
Content mappingsRelated
December 14, 2011
Apr 1, 2011 1:26:17 PM
});