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 » Coding an attibute with a value - ???

Post new topic  Reply to topic
 Coding an attibute with a value - ??? « View previous topic :: View next topic » 
Author Message
LH33
PostPosted: Thu Mar 27, 2003 11:22 am    Post subject: Coding an attibute with a value - ??? Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Hi!

I have to populate an OutputRoot tag with a value from the InputRoot. The OutputRoot tag occurs two times. I sther a way to code it so that teh attribute is equl to "index = 1" and the value is the value from the InputRoot? I have included my code so far:

Thanks for any help!

SET OutputRoot.XML.ChangeJob.DataArea.Job.ExternalNumbers.ExternalNumber[1] = InputRoot.XML.ATLAS_XY_QUERY.DataArea.RECORD_DATA.EXTERNAL_ONE;

Thanks!1 LisaB
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 27, 2003 12:11 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Do you want
Code:
<ExternalNumber index="1">value</ExternalNumber>

That's
Code:
SET OutputRoot.XML.ChangeJob.DataArea.Job.ExternalNumbers.ExternalNumber[1] = InputRoot.XML.ATLAS_XY_QUERY.DataArea.RECORD_DATA.EXTERNAL_ONE;
set
OutputRoot.XML.ChangeJob.DataArea.Job.ExternalNumbers.ExternalNumber[1].(XMLAttribute)index=1;


Or do you want something else?
Back to top
View user's profile Send private message
LH33
PostPosted: Thu Mar 27, 2003 12:17 pm    Post subject: Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Thanks!!! That's exactly what I want! Soory it wasn't clearer!
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 » Coding an attibute with a value - ???
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.