ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Need to Map only the element without attribute

Post new topic  Reply to topic
 Need to Map only the element without attribute « View previous topic :: View next topic » 
Author Message
ethirajesh
PostPosted: Thu Aug 04, 2011 12:44 am    Post subject: Need to Map only the element without attribute Reply with quote

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
View user's profile Send private message
jlaisbett
PostPosted: Thu Aug 04, 2011 1:15 am    Post subject: Reply with quote

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
View user's profile Send private message
ethirajesh
PostPosted: Thu Aug 04, 2011 3:49 am    Post subject: Reply with quote

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
View user's profile Send private message
ethirajesh
PostPosted: Fri Aug 12, 2011 12:35 am    Post subject: Resolved Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Need to Map only the element without attribute
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.