on 08-31-2016 1:39 PM
Hi,
Can you please help on the XPath expression for the below case in receiver determination. I want to compare the count to the number of Records node in the XPath in receiver determination. Basically need to check if these two are equal.
So if the count is 3 the no of Record nodes will be 3 . Is there a way to achieve this in Xpath.
Header
Count 2
Records
Name
Age
Records
Name
Age
Hi Amit!
Assuming that your message should have the root element like this:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Message xmlns:ns0="urn://your_ns">
<Header>
<Count>2</Count>
</Header>
<Records>
<Name>Name1</Name>
<Age>Age1</Age>
</Records>
<Records>
<Name>Name2</Name>
<Age>Age2</Age>
</Records>
</ns0:MT_Message>
You could use the following condition:
/*[Header/Count=count(Records)] EX
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you want to rout the message to different destinations based on the count?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
Please check the below thread if this solves your query,
https://scn.sap.com/thread/1606794
Regards,
Praloy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
11 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.