Skip to Content
0

Need a syntax for node not EXIST in XPath

Dec 06, 2017 at 07:25 PM

28

avatar image
Former Member

I am trying to map different OM through a condition in Receiver Interfaces in ICO.

There I have to map to OM when "MEPS" field not exist.

I have tried with

/ns1:AT_ERP_EXPORT/PARTS/PART/not(MEPS)

and

/ns1:AT_ERP_EXPORT/PARTS/PART/[not(MEPS)]

but it is not working in both the cases.

Regards

Ramji B


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Peter Wallner Dec 07, 2017 at 10:02 AM
1

Hello Ramji B,

This should be the correct XPATH:

/ns1:AT_ERP_EXPORT/PARTS/PART[not(MEPS)]

In the condition editor you also have EX for "exists". you can try this as well:

/ns1:AT_ERP_EXPORT/PARTS/PART[count(MEPS) = 0] EX

You basically count the MEPS and want it to 0.

Best regards, Peter

Share
10 |10000 characters needed characters left characters exceeded