on 04-11-2011 1:23 PM
Hi,
I need an xpath to convert to uppercase for
<Empid>
<Name>
<FirstName>demo</FirstName>
<LastName>test</LastName>
</Name>
<Empid>
Need to check the element FirstName contains Demo ( by converting it to uppercase)
I used various type like these:
/Empid/upper-case(FirstName) = 'DEMO'
/Empid[upper-case(FirstName) = 'DEMO'] ex
but when did test configuration ID got error in receiver determination, somebody please suggest a suitable path...to test this condition.
Thanks
Hello,
Try using the below condition:
/Empid/Name[upper-case(FirstName) = 'DEMO']
OR
/EMPID/Name[translate(FirstName,'demo','DEMO')='DEMO']
-Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Archanaa
as you mentioned you just need to check the value is "DEMO".. but you men to say it might come as "demo"
then why donu2019t you use following simple logic..
put two different condition in xpath with OR..
check if fieldvalue= "DEMO" OR if fieldvalue = "demo"
keep it simple..
Thanks,
Bhupesh
hi,
In my actual case i might get a string which starts with the word Demo so to be specific im converting it to upper case so the condition handle even if i get in caps... and i have changed my mapping in IR also accordingly for upper case so thats the reason i want to do it condition editor also..
Thanks
I dont think you can use an XSL function to convert the data eleement in payload using XPATH expression in RECV DET. This is only to traverse to a particular node in the source XML document, further processing might not be possible. If your recv det condition checking needs some programming/calculations, you have to opt for an extended recv determination and do the condition checking in the recv det mapping.
Regards,
Suddhasatta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.