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 » SET statement with XML data

Post new topic  Reply to topic
 SET statement with XML data « View previous topic :: View next topic » 
Author Message
Gideon
PostPosted: Mon Nov 07, 2011 9:43 am    Post subject: SET statement with XML data Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

Given the following partial subset:

Code:
<address>
   <street>100 Maple/street>
   <city>Tucson</city>
   <state>AZ</state>
</address>


Obviously I can do something like:


Code:
   SET OutputRoot.XMLNSC.xxx:doc.address.street = InputRoot.XMLNSC.xxx:doc.address.street;
   SET OutputRoot.XMLNSC.xxx:doc.address.city   = InputRoot.XMLNSC.xxx:doc.address.city;
   SET OutputRoot.XMLNSC.xxx:doc.address.state  = InputRoot.XMLNSC.xxx:doc.address.state;


However, how do I do this if I just want to copy a chunk of data, I want to copy all trhee fields with a single command (In other words the entire address), how would I do that

Thanks
Back to top
View user's profile Send private message Send e-mail
paintpot
PostPosted: Mon Nov 07, 2011 9:51 am    Post subject: Reply with quote

Centurion

Joined: 19 Sep 2005
Posts: 112
Location: UK

Code:
SET OutputRoot.XMLNSC.xxx:doc.address = InputRoot.XMLNSC.xxx:doc.address;


should do it!
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 » SET statement with XML data
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.