Skip to Content
avatar image
Former Member

Need a syntax for node not EXIST in XPath

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


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 07, 2017 at 10:02 AM

    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

    Add comment
    10|10000 characters needed characters exceeded