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 » Creating and Assigning values to XML attributes

Post new topic  Reply to topic
 Creating and Assigning values to XML attributes « View previous topic :: View next topic » 
Author Message
prakash27
PostPosted: Tue Jul 12, 2011 12:36 pm    Post subject: Creating and Assigning values to XML attributes Reply with quote

Novice

Joined: 15 Feb 2011
Posts: 20

I am trying to map some constant values to the XML filed attributes.
This is what my output xml should look like
<InputMsg>
<Field1 Attribute1="text1" Attribute1="Text2"/>
</InputMsg>

I tried SET OutputRoot.XMLNS.InputMsg.Field1.(XMLNS.Attribute) Attribute ="tex1";

I found how to extract values from Attributes but now how to set values to them from Information center.

Appreciated some light in this.

Thanks,
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jul 12, 2011 5:31 pm    Post subject: Re: Creating and Assigning values to XML attributes Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

prakash27 wrote:
I tried SET OutputRoot.XMLNS.InputMsg.Field1.(XMLNS.Attribute) Attribute ="tex1";


What result did you get with this?

Why are you not using XMLNSC (and the constants associated with that)?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 12, 2011 8:20 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

If (XMLNS.Attribute) fails in any way, try replacing it with (XML.Attribute).

However if you are using the XMLNSC parser you HAVE to use (XMLNSC.Attribute)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
prakash27
PostPosted: Tue Jul 12, 2011 8:59 pm    Post subject: Creating and Assigning values to XML attributes Reply with quote

Novice

Joined: 15 Feb 2011
Posts: 20

Thanks fjb_saper and Vitor.
I used XMLNSC.Attribute, It Worked
XMLNS.Attribute failed.

Thanks fjb_saper.
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 » Creating and Assigning values to 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.