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 » Copy Group Element

Post new topic  Reply to topic
 Copy Group Element « View previous topic :: View next topic » 
Author Message
raghubegur
PostPosted: Mon Apr 16, 2007 12:09 pm    Post subject: Copy Group Element Reply with quote

Apprentice

Joined: 15 Jul 2002
Posts: 45

Hi,

OutputRoot.XML.message.interface.selectSet has few fields:
Field1
Field2
Fieldn

I need to copy the contents of 'selectSet' to 'resultSet' in the OutputMessage. The desired Ouput is:
The desired output is:
OutputRoot.XML.message.interface.
selectSet
Field1
Field2
Fieldn
resultSet
Field1
Field2
Fieldn

I thought this would work:
DECLARE cursor REFERENCE TO OutputRoot.XML.message.interface;
CREATE LASTCHILD OF cursor Domain('XML') NAME 'resultSet' VALUE OutputRoot.XML.message.interface.selectSet;

The resultSet field is created without any child elements.
_________________
Cheers
Raghu
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Apr 16, 2007 12:14 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Um.

Set OutputRoot.XMLNS.message.interface.resultSet = OutputRoot.MRM.XMLNS.message.interface.selectSet;
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
raghubegur
PostPosted: Mon Apr 16, 2007 12:58 pm    Post subject: Reply with quote

Apprentice

Joined: 15 Jul 2002
Posts: 45

Thanks Jeff.

I had it working with
Set OutputRoot.XML.message.interface.resultSet = OutputRoot.XML.message.interface.selectSet;

I was curious to use 'Create LastChild' in the way listed in my posting.
Lucky me, my project has time for me to experiment with complex code while the simpler stuff already works.

I am not sure why the result is different.
_________________
Cheers
Raghu
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Apr 16, 2007 1:15 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Well, I think that your CREATE statement doesn't do what you think it does.

I also don't think it's valid to set the VALUE of an element = a tree element.
_________________
I am *not* the model of the modern major general.
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 » Copy Group Element
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.