Get Value by XPath

Logic Name

Get Value by XPath

Function

Gets value by XPath.

Data Types

Location Type
The first input handler String
Logic output String
lightbulbRefer to "Logic Specifications" for details.

Properties

Category Property Description
Required XPath expression Specify the position to get the value by XPath expression.
Comment Comment The comment will also be output to the specifications.It does not affect the conversion process.

Specification Limits

Notes

Logic Sample

Mapping Definition

Logic Settings and Processing Result

This logic output values from XML data by XPath expression.
Property Settings
Input Data
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <element>
    <sample>
      <data>data1</data>
      <data>data2</data>
    </sample>
    <sample>
      <data>data3</data>
      <data>data4</data>
    </sample>
  </element>
</root>
Result Data
data1,data2,data1
data3,data4,data1