Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Talend仅通过对xml文件使用Xpath计算工资总额_Xpath_Talend - Fatal编程技术网

Talend仅通过对xml文件使用Xpath计算工资总额

Talend仅通过对xml文件使用Xpath计算工资总额,xpath,talend,Xpath,Talend,我想知道我们是否可以在XML或edifact文件中直接使用Xpath对数据求和。 我希望通过使用Xpath获得此xml中所有度量值的总和。这可能吗? 示例如下: <body> <test id="1"> <name> Eric <name> <salary>1000</salary> </test> <test id="2"

我想知道我们是否可以在XML或edifact文件中直接使用Xpath对数据求和。 我希望通过使用Xpath获得此xml中所有度量值的总和。这可能吗? 示例如下:

<body>
    <test id="1"> 
       <name> Eric <name>
       <salary>1000</salary>
    </test>
<test id="2"> 
       <name> David <name>
       <salary>1200</salary>
    </test>
<test id="3"> 
       <name> Fred <name>
       <salary>1500</salary>
    </test>
</body>

埃里克
1000
大卫
1200
弗莱德
1500

xml中没有测量值。