cancel
Showing results for 
Search instead for 
Did you mean: 

Need a syntax for node not EXIST in XPath

Former Member
0 Kudos

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


Accepted Solutions (1)

Accepted Solutions (1)

peter_wallner2
Active Contributor

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

Answers (0)