|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Need to Map only the element without attribute |
« View previous topic :: View next topic » |
Author |
Message
|
ethirajesh |
Posted: Thu Aug 04, 2011 12:44 am Post subject: Need to Map only the element without attribute |
|
|
Apprentice
Joined: 04 Oct 2010 Posts: 46
|
Hi,
I have mapped a element which has a attribute also using mapping node, but the output of the mapping node creates the attribute as well.
I dont need the attribute to be created, jus need the element oly.
Source element :
<Instruction maneuverType="DepartStart">Depart A3212 / Whitehall toward Craigs Court</Instruction>
Expected Output :
<DrivingInstruction>Depart A3212 / Whitehall toward Craigs Court</DrivingInstruction>
Current output :
<DrivingInstruction maneuverType="DepartStart">Depart A3212 / Whitehall toward Craigs Court</DrivingInstruction>
I have checked the forum and MB help, but not able to find specific to this. Please help me on this.
Thanks
Ethirajesh |
|
Back to top |
|
 |
jlaisbett |
Posted: Thu Aug 04, 2011 1:15 am Post subject: |
|
|
Apprentice
Joined: 27 Nov 2009 Posts: 39
|
You need to map the value of the element rather than the element as a whole. I think there's a function or something you use for this but I can't remember what it is at the moment, it's fieldValue or something like that.
For the exact function check the mapping functions in the info center |
|
Back to top |
|
 |
ethirajesh |
Posted: Thu Aug 04, 2011 3:49 am Post subject: |
|
|
Apprentice
Joined: 04 Oct 2010 Posts: 46
|
I tried giving FieldValue, but it throws error. It seems we can give Fieldvalue in ESQL only not in Mapping node.
Can you please tell whta shud be given in Mapping node? |
|
Back to top |
|
 |
ethirajesh |
Posted: Fri Aug 12, 2011 12:35 am Post subject: Resolved |
|
|
Apprentice
Joined: 04 Oct 2010 Posts: 46
|
Found the solution as below. FOrgot to update it...
esql:fieldvalue($source/tns1:feed/tns1:entry/tns1:content/app2:properties/app1:Latitude)
Thanks |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|