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 root copy from InputRoot

Post new topic  Reply to topic
 XML root copy from InputRoot « View previous topic :: View next topic » 
Author Message
crojas
PostPosted: Tue Jun 18, 2002 7:07 am    Post subject: XML root copy from InputRoot Reply with quote

Apprentice

Joined: 10 Mar 2002
Posts: 28

I want to copy an child from InputRoot.XML to the root of the OutputRoot, but when i do the next:


SET OutputRoot.XML = InputRoot.XML.trx.trx1;

It uses the 'XML' tag as root, how do i do it?
Back to top
View user's profile Send private message
kirani
PostPosted: Tue Jun 18, 2002 7:21 am    Post subject: Reply with quote

Jedi Knight

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

Have you tried this,
SET OutputRoot.XML.trx1 = InputRoot.XML.trx.trx1;
_________________
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
crojas
PostPosted: Tue Jun 18, 2002 7:56 am    Post subject: Reply with quote

Apprentice

Joined: 10 Mar 2002
Posts: 28

Yes, but i have messages that can change, i mean trx1 could be trx2 and so on.
Back to top
View user's profile Send private message
CodeCraft
PostPosted: Tue Jun 18, 2002 1:55 pm    Post subject: Reply with quote

Disciple

Joined: 05 Sep 2001
Posts: 195

Not sure exactly what you want to do here: You need to give example input and output XML messages.

Look up the Item Keyword for removing the name from name/value items. Another way is to set first to a local variable, which can only hold a value, not name+value, and then map this to your destination.

If you need anonymous references, use:

Set OutputRoot.XML.*[1] = InputRoot.XML.trx.*[1];
Back to top
View user's profile Send private message
crojas
PostPosted: Wed Jun 19, 2002 6:15 am    Post subject: Reply with quote

Apprentice

Joined: 10 Mar 2002
Posts: 28

That was exactly what i want to do, i didn't know that you can use '*' in the OutputRoot.

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 » XML root copy from InputRoot
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.