cancel
Showing results for 
Search instead for 
Did you mean: 

XPath on Expression Editor

Former Member
0 Kudos

Guys,

we have a message like the following:

<xml>

<order>

<status>0</status>

</order>

<order>

<status>1</status>

</order>

<order>

<status>2</status>

</order>

</xml>

We need to create a routing condition in receiver determination where we need to check if exist a status with value 1.

So, I though of using condition:

If (xml/order[//status=1]) EX

But we need also the negative condition. Since there's no "Not Exist" operator, what should I use?

Does (xml/order[//status!=1]) EX would work?

Thank you and kind regards,

Henrique.

Accepted Solutions (0)

Answers (3)

Answers (3)

henrique_pinto
Active Contributor
0 Kudos

Problem solved.

Regards,

Henrique.

henrique_pinto
Active Contributor
0 Kudos

Problem solved.

Regards,

Henrique.

moorthy
Active Contributor
0 Kudos

HI,

<i>Does (xml/order[//status!=1]) EX would work?</i>

>>Yeah, did you try ?

Have a look into this blog-

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Regards,

Moorthy