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 setting problem

Post new topic  Reply to topic
 XML Attributes setting problem « View previous topic :: View next topic » 
Author Message
satya22777
PostPosted: Mon Feb 05, 2007 2:52 pm    Post subject: XML Attributes setting problem Reply with quote

Apprentice

Joined: 03 Apr 2006
Posts: 31

Hi all,
I am working on WBIMB 5.0 fixpack5.

Here I am trying to set the attributes in the parent elemet. I tried in so many ways, but the fields are creating as child elements but not as attributes. Does any body help me.

for example :

My expectation

<A abc=attValue>
</A>

But we are getting it as:

<A>
<abc>attValue</abc>
</A>

thanks in advance.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 05, 2007 2:58 pm    Post subject: Reply with quote

Grand High Poobah

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

Try something like
SET A.(XML.Attr)abc=attValue;

And browse the site. There is some info in the infocenter as well.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
satya22777
PostPosted: Mon Feb 05, 2007 3:14 pm    Post subject: Reply with quote

Apprentice

Joined: 03 Apr 2006
Posts: 31

Hi,
I have tried the option specified by you.I am getting it as child element instead of attribute.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Feb 05, 2007 3:37 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Which domain are you using?
Back to top
View user's profile Send private message
sarat
PostPosted: Mon Feb 05, 2007 9:14 pm    Post subject: Reply with quote

Centurion

Joined: 29 Jun 2005
Posts: 136
Location: India

Hi satya,



Quote:
SET A.(XML.Attribute)abc = 'attValue';



Try this...It should work....if not paste the code wat ur using!!
_________________
With Regards,
Sarat.
Back to top
View user's profile Send private message
satya22777
PostPosted: Tue Feb 06, 2007 6:06 am    Post subject: Reply with quote

Apprentice

Joined: 03 Apr 2006
Posts: 31

hi kimbert,

We are using MRM domain.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Feb 06, 2007 3:28 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
We are using MRM domain
I thought so. I know what the problem is. The message tree which you are trying to output does not match your message definition. Please check the following:
-The XML physical format property 'Root Tag Name' should be set to the empty string ( it defaults to 'MRM' in v5 ).
- The name and namespace of each element in the message definition must match the corresponding element in your message tree.

And please note ( all posters on this thread ): you cannot use (XML.Attribute) with the MRM domain. It is a correlation name for the XML and XMLNS domains only.
Back to top
View user's profile Send private message
sarat
PostPosted: Wed Feb 07, 2007 10:24 pm    Post subject: Reply with quote

Centurion

Joined: 29 Jun 2005
Posts: 136
Location: India

hi,

kimbert wrote

Quote:
And please note ( all posters on this thread ): you cannot use (XML.Attribute) with the MRM domain. It is a correlation name for the XML and XMLNS domains only.


agreed!! But i donn know why u specified this? does any body suggested him to do that in MRM domain?

satya wroe in his first post:

Quote:
for example :

My expectation

<A abc=attValue>
</A>

But we are getting it as:

<A>
<abc>attValue</abc>
</A>



we donn know the domain what he's using.

So can we use like this in MRM domain?

Code:
SET OutputRoot.MRM.A.abc = 'attValue';



bcoz.....

Quote:
When an MRM message is parsed into a logical tree, attributes and the data that they contain are created as name-value pairs in the same way that MRM elements are. This means that the ESQL that you code to interrogate and update the data held in attributes refers to the attributes in a similar manner.



please let me if i'm wrong!!!
_________________
With Regards,
Sarat.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Feb 08, 2007 4:43 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Hi sarat,
Quote:
So can we use like this in MRM domain?
Yes - your snippet of ESQL would be correct.
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 setting problem
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.