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 » XML ESQL query

Post new topic  Reply to topic
 XML ESQL query « View previous topic :: View next topic » 
Author Message
rehe
PostPosted: Mon Sep 22, 2003 1:44 pm    Post subject: XML ESQL query Reply with quote

Novice

Joined: 17 Jul 2003
Posts: 13

Is it possible to refer to an element in a message body dynamically

eg.

Sample message flow
<Message>
<data_value_1>
<data_value_2>
<data_value_3>

I would like to be able do something like refer to data_value_I where I is a counter in a loop.
When I try to do this in ESQL with
"InputBody"."Message"."data_value_" || I
it tries to parse the "InputBody"."Message".data_value_" part first and evaluates it to null before appending the counter which I have cast as a char.
Is there any way I get get around this or I am approaching this incorrectly?
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Sep 22, 2003 7:52 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Yes, this is possible by using dynamic field name resolution using {}. For example,
InputBody."Message".{'data_value_' || I} will resolve into InputBody."Message".data_value_1, where 1 is value of I (char data type).
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML ESQL query
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.