Skip Ribbon Commands
Skip to main content
SharePoint

Read Values from an XML Document using XPath Queries

To use XPath to populate data items with values from an XML file, complete the following steps:
  1. Check out and open the process you want to edit.

  2. In the Toolbox pane, click Document. A list of activities is displayed.

  3. Double-click or drag the Read XML Document activity into the process.

  4. Link the activity appropriately with other activities.

  5. Right-click the Read XML Document activity. A shortcut menu is displayed.

  6. Select View Properties. The Read XML Document window is displayed.

    Note:
    You can also open or view the activity properties by double-clicking the activity in the process.


  7. Click the Input Source tab. The corresponding screen is displayed.

  8. Select the Input XML from File option. The corresponding field is enabled.

  9. In the Input File location field, select the appropriate input field editor and set the field value to the storage location of the XML file that has to be read.

  10. In the Authentication section, select Run as BPM Server or Specify credentials option.

    Note:
    If you select Run as BPM Server, access will be granted or rejected based on the BPM Server credentials. 
    If you select Specify credentials, complete the Username, Password, and Include domain fields using the appropriate input field editors.
    The Include domain check box is optional.


  11. Click the Data Mappings tab. The corresponding screen is displayed.

    Note:
    Select the Select Collection Data Item for Mapping and Multiple item Context check box to select and map values to a collection data item


  12. In the Data Item field, click the Data Item editor. A drop-down list is displayed.

  13. Select the solution or process data item to which you want to map XML values.

  14. In the XPath field, select the appropriate input field editor and set the field value to the XML code, required to read the data in the XML document.

    Note:
    You can add more mappings by clicking the plus sign (+). Use the minus sign (-) to remove a mapping.


  15. Click OK. You configured the activity to use XPath to populate data items with values from an XML file.
Related Topics
Read Values from XML in an XML Data Item using XPath Queries

Source
BPM Designer Topics > Overview of Activities and Activity Topics > Document Activities > Read XML Document
Last modified at 7/31/2020 11:57 AM