Select language:

XML Content and Actions

Purpose

The portal enables you to upload an XML file and automatically create semantic portal objects (for example, iViews, pages and roles) and perform actions (for example, assign roles or deleting content).

This feature is especially useful for automated mass content creation, bypassing the need to invoke various content wizards and editors. Advanced users can perform batch operations and make pinpoint modifications within a large content base.

You can also generate an XML file based on existing portal content, then upload that XML file to another portal in order to copy content from one portal to another.

Note

For more information, see How to Automate Content Creation via XML (XML Content and Actions), located on SAP Developer Network at sdn.sap.com/irj/sdn/howtoguides → SAP NetWeaver 7.0 → User Productivity Enablement → Running an Enterprise Portal.

This guide describes how to code an XML file for defining portal objects and performing actions, and includes code samples. The guide also describes how to upload (import) an XML file, and how to generate (export) an XML file from existing portal content.

Integration

You upload an XML file to the portal (import) or generate and download an XML file based on existing content (export) using the XML Content and Actions tool. By default, it is assigned to the standard System Administration role, under Transport → XML Content & Actions.

The XML file must be valid so that it can be parsed and executed by the portal. Coding the XML is possible in a number of ways, including the use of scripts that can transform a Microsoft Excel or text file into XML. Such services are not supplied by SAP.

Caution

Uploaded XML files are able to irreversibly execute any number of actions in the portal, including the overwriting and deleting of existing content. Uploading an incorrect XML file may cause permanent damage to the portal. It is highly recommended to perform test runs initially on a non-production portal installation.

Due to the potential harmful effects of this tool, it is recommended to remove access to it for all portal administrators, except for those who are authorized and trained to use it.

Constraints
  • The portal's transport mechanism should be used to move portal applications and portal content from one portal to another. The transport mechanism also provides additional functionalities, such as multi-language support. See Transport of Portal Objects .

    The XML Content and Actions tool is designed for creating new content.

  • For information on transporting and creating permissions using XML scripts, see Transporting Permissions .
  • The portal does not offer an editor that enables you to view, edit or validate the syntax and well‑formedness of the XML in a file before it is uploaded.