Read XML activity

The Read XML activity takes an XML document and parses it to a defined schema. XML data is returned from this activity as the output parameter and the data can be used in subsequent activities.

About this task

The input parameter of the Read XML activity expects XML text. This data can be obtained from various endpoint activities such as the FTP Poll Directory activity reading a file containing XML data or HTTP Receive Request activity. The input data must be a well formed XML document or the activity will error. You must create an XML variable (see the Variables tab) before you can use an XML Schema in the Configure task. The XML variable can be defined by adding an XML schema to the project or by using an existing variable.
Note: If no function is defined in the Map Outputs for the Read XML activity and there is a straight mapping, in the From Activity to the To Orchestration, the XML data is passed to the output activity without validating against the schema that is specified in the XML variable.
Note: If there are any functions or other changes to the mappings in the Map Outputs for the Read XML activity, and the content does not match the schema, then an empty XML document is provided as the output of the Read XML activity.

To add a Read XML activity to an orchestration:

Procedure

  1. Create or open an orchestration. A graphical representation of the orchestration is displayed.
  2. Select the Activities tab and expand the Transform folder.
  3. Drag the Read XML activity onto the orchestration. Place it to the right of an activity from which the orchestration will obtain the XML data (for example, an FTP Poll Directory).
  4. Select the Read XML activity and configure it as described in Read XML activity configuration.



Feedback | Notices


Timestamp icon Last updated: Tuesday, 27 September 2016


https://www.ibm.com/support/knowledgecenter/en/SS3LC4_7.5.3/com.ibm.wci.doc/Read_xml_Activity.html