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 » Implementing wild cards in the Input XML

Post new topic  Reply to topic
 Implementing wild cards in the Input XML « View previous topic :: View next topic » 
Author Message
vmurdesh
PostPosted: Fri Oct 11, 2002 9:15 am    Post subject: Implementing wild cards in the Input XML Reply with quote

Novice

Joined: 09 May 2002
Posts: 18

I need to extract the field from the transactioncode tag in the input XML where the tag before it could be anything (wildcard)
This syntax does not work
SET TranName = InputBody.xl_request.*.transactioncode;

what is the correct syntax if this is possible?

thanks a lot!!!
Back to top
View user's profile Send private message
wmqiguy
PostPosted: Fri Oct 11, 2002 12:17 pm    Post subject: Reply with quote

Centurion

Joined: 09 Oct 2002
Posts: 145
Location: Florida

I haven't completely thought this through, but hopefully it will inspire others to come up the full solution.

I think your answer might lie in something similar to the code used by the product to copy the headers:

DECLARE I INTEGER;
SET I = 1;
WHILE I < CARDINALITY(InputRoot.*[]) DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I=I+1;
END WHILE;

Additionally, you might want to be careful about your assignment statement. Since you are using wildcards, you could potentially be assigning a list to a scalar.

Hope that helps.....or at least inpires someone else to give better advice!

Good luck.
Back to top
View user's profile Send private message
lung
PostPosted: Fri Oct 11, 2002 4:59 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

vmurdesh,

Try this...
Code:
SET TranName = InputBody.xl_request.*[].transactioncode;


Not sure whether it can work, though. Just a suggestion
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Implementing wild cards in the Input XML
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.