Skip to Content
0
May 12 at 04:49 PM

Doubt with XPATH in CPI

106 Views

Dear experts

I have a doubt with XPATH using CPI.

I have the following XML

<?xml version="1.0" encoding="UTF-8" ?>
<articles>
    <article>
        <title>First steps in Java</title>
        <author id="1">
            <firstname>Siena</firstname>
            <lastname>Kerr</lastname>
        </author>
        <release-date>2018-12-01</release-date>
    </article>
    <article>
        <title>Dockerize your SpringBoot application</title>
        <author id="2">
            <firstname>Jonas</firstname>
            <lastname>Lugo</lastname>
        </author>
        <release-date>2018-12-01</release-date>
    </article>
    <article>
        <title>SpringBoot tutorial</title>
        <author id="3">
            <firstname>Daniele</firstname>
            <lastname>Lugo</lastname>
</author> <release-date>2018-06-12</release-date> </article> <article> <title>Java 12 insights</title> <author id="1"> <firstname>Siena</firstname> <lastname>Kerr</lastname> </author> <release-date>2018-07-22</release-date> </article> </articles>

When I test the XPATH the system return two rcord using two tools different for test XPATH

image.png

However in the iflow using the same XPATH only return one only record:

image.png

This is the resulted in the trace:

image.png

And how can get the resulted waited?

Regards

Attachments

image.png (75.3 kB)
image.png (49.7 kB)
image.png (48.3 kB)