on 07-02-2015 6:54 AM
Hi All,
I m trying to determine the receiver based on the number of time the field is occurring in the payload.
Below is the example payload.
<TransportList>
<MessageHeader>
<RecipientList>
<InternalID schemeID="A">aMapping</InternalID>
</RecipientList>
<RecipientList>
<InternalID schemeID="B">bMapping</InternalID>
</RecipientList>
<MessageHeader>
<TransportList>
Below is the xpath condition I have used.
/p1:TransportationList/MessageHeader[count(RecipientList/InternalID[@schemeID ='A' ]]) = 0 EX ) -> Mapping1
/p1:TransportationList/MessageHeader[count(RecipientList/InternalID[@schemeID ='A' ]]) > 0 EX ) -> Mapping2
It seems that i'm doing it the wrong way, somewhere.
can you guys please guide me 😐
regards,
Arun
Hi Arun,
Can you try this and let us know if you still having issues.
/p1:TransportationList/MessageHeader/RecipientList[count(InternalID[@schemeID ='A'])] = 0 EX
-->mapping1
/p1:TransportationList/MessageHeader/RecipientList[count(InternalID[@schemeID ='A'])] > 0 EX
--> Mapping2
Note: The right operand after EX operator should be blank
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arun,
Can you try this:
/p1:TransportationList/MessageHeader/RecipientList/InternalID[count(@schemeID="A")=0] EX -> mapping 1
/p1:TransportationList/MessageHeader/RecipientList/InternalID[count(@schemeID="A")>0] EX -> mapping 2
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.