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 Attributes

Post new topic  Reply to topic
 XML Attributes « View previous topic :: View next topic » 
Author Message
genestep
PostPosted: Mon Apr 29, 2002 10:40 am    Post subject: Reply with quote

Apprentice

Joined: 16 Apr 2002
Posts: 43
Location: France

Hi,
I try to recover information in my XML message to populate an another tag in the Output message.the structure is like this :
<Root><Header><Parameter name="n1" actor="a1">param1</Parameter>.....</Header>.... </Root>

I try to use in a compute node this kind of method :
set OutputRoot.XML.Root.Header.Test[1].(Xml.attr)value =
the (select item Parameter from InputRoot.XML.Root.Header.Parameter[] where Parameter.(xml.attr)name='a1') (i want this result in my attribute => param1)
It doesn't work when i revover it in an attribute. (If i copy it in an element, it copies all attributes and the value).

Is it a correct syntax to do thisor is it a problem with attributes in a compute node.

Thanks

Philippe
Back to top
View user's profile Send private message
Coz
PostPosted: Mon Apr 29, 2002 10:53 pm    Post subject: Reply with quote

Apprentice

Joined: 20 Feb 2002
Posts: 44
Location: Basel CH

When using attibutes in a SELECT or as a reference for a SET they are treated as normal tags. (XML.Attr) only needs to be used when creating a new attribute in an existing tree.
Back to top
View user's profile Send private message
lillo
PostPosted: Tue Apr 30, 2002 5:49 am    Post subject: Reply with quote

Master

Joined: 11 Sep 2001
Posts: 224

To set the XML attribute in the output message use the following syntax:

SET OutputRoot.XML.Message.(XML.Attribute)attribute VALUE=attrvalue;

You can specified instead of attrvalue InputRoot.XML.Message.Field3 or whatever you want. The important issue is to specify the keyword VALUE.

I hope this help you

cheers,

Lillo
Back to top
View user's profile Send private message
genestep
PostPosted: Tue Apr 30, 2002 6:50 am    Post subject: Reply with quote

Apprentice

Joined: 16 Apr 2002
Posts: 43
Location: France

Hi

It works fine with VALUE keyworks !!

Thanks Lillo
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 Attributes
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.