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 transformation

Post new topic  Reply to topic
 xml transformation « View previous topic :: View next topic » 
Author Message
Meow
PostPosted: Mon Dec 08, 2003 2:16 pm    Post subject: xml transformation Reply with quote

Voyager

Joined: 25 Jun 2003
Posts: 95

Hi all,

this is my input message

<query><cond>123</cond></query>
or
<req><cond>456</cond></req>

depending on the input message i get my response varies

<responsequery>
<table col1="aaa"/>
<table col1="bbb"/>
</responsequery>

or

<responsereq>
<name col1="aaa"/>
<name col1="bbb"/>
</responsereq>

can some one let me know how to dynamically generate the tags in XML. I am retrieving the same set of values but my output message is varying depending on the input message i get.

please let me know.

thanks
Back to top
View user's profile Send private message
maxis
PostPosted: Tue Dec 09, 2003 1:40 pm    Post subject: Reply with quote

Centurion

Joined: 25 Jun 2002
Posts: 144

What youre asking is its
Quote:
curous
question or real requirement ? Because .. if its a real requirement .. who will the receiving system determine what to look for ? ....
keeping my curiousity beside ....

no its not possible to generate dynamic xml tags not even xml attributes ...


M
Back to top
View user's profile Send private message
EddieA
PostPosted: Tue Dec 09, 2003 2:07 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
no its not possible to generate dynamic xml tags not even xml attributes ...


Wrong. You can generate the XML using either EVAL or {...}, which will allow run-time substitition.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
maxis
PostPosted: Tue Dec 09, 2003 7:28 pm    Post subject: Reply with quote

Centurion

Joined: 25 Jun 2002
Posts: 144

great ... & thanks for correcting

would you please post the exact syntax ...
Back to top
View user's profile Send private message
kirani
PostPosted: Tue Dec 09, 2003 11:30 pm    Post subject: Reply with quote

Jedi Knight

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

Here is an example,

Code:

DECLARE TAGNAME CHAR 'MyXMLTag';
SET OutputRoot.XML.{TAGNAME} = 'ABC';


will generate following output,

Quote:

<MyXMLTag>ABC</MyXMLTag>

_________________
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 transformation
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.