如何在使用Pentaho提取XML时将条件放入XPATH?

时间:2018-03-19 07:50:07

标签: xml xpath pentaho pentaho-spoon pentaho-data-integration

                  <table>
                    <tr styleCode="normRow xMergeUp">
                       <td ID="problem30comment" colspan="2" styleCode="allIndent">
                          <paragraph styleCode="cellHeader">Overview:</paragraph>
                          <paragraph>Test</paragraph>
                       </td>
                    </tr>
                    <tr ID="problem29" styleCode="altRow">
                       <td ID="problem29name">Anemia</td>
                       <td>07/30/2015</td>
                    </tr>
                 </table>

我有上面的XML标签。所以我想检查标签是否包含<paragraph>标签。如果是,则获取<paragraph>代码值或直接获取<td>值。

我在Pentaho中使用“从XML获取数据”。

0 个答案:

没有答案