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 » ESQL required for getting element value in XML input

Post new topic  Reply to topic
 ESQL required for getting element value in XML input « View previous topic :: View next topic » 
Author Message
dipankar
PostPosted: Tue Apr 19, 2005 4:30 am    Post subject: ESQL required for getting element value in XML input Reply with quote

Disciple

Joined: 03 Feb 2005
Posts: 171

Hi All,
Please see the following input

<MsgData>
<EmpName IsChanged="Y">Dipankar</EmpName>
<EmpDescr IsChanged="Y">Level1 Descr</EmpDescr>
</MsgData>

I need output as shown below:

<MsgData>
<EmpName>Dipankar</EmpName>
<EmpDescr>Level1 Descr</EmpDescr>
</MsgData>
What will the ESQL Code for extracting element value?
Now I am using the following code:
SET OutputRoot.XML.MsgData.EmpName = InputBody.MsgData.(XML.Element).EmpName; But it returns attribute value with element.
I need only element value.
Please help me. I am eagerly waiting for your responses.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 19, 2005 4:31 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Use FIELDVALUE.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
dipankar
PostPosted: Tue Apr 19, 2005 4:41 am    Post subject: Reply with quote

Disciple

Joined: 03 Feb 2005
Posts: 171

Thanks a lot for your kind information. It is now working absolutely fine.
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 » ESQL required for getting element value in XML input
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.