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 » Attributes in Output.XML

Post new topic  Reply to topic
 Attributes in Output.XML « View previous topic :: View next topic » 
Author Message
vmurdesh
PostPosted: Fri May 10, 2002 8:52 am    Post subject: Reply with quote

Novice

Joined: 09 May 2002
Posts: 18

I am trying to output XML in a COMPUTE node to get
<Billing day="01" month="12">
</Billing>

What is the syntax for this? i tried some combinations from the manual like..
SET OutputRoot.XML.Billing.(XML.Element)day =’01 ’;
SET OutputRoot.XML.Billing.(XML.Element)month =’12’;

which does not work
Back to top
View user's profile Send private message
kirani
PostPosted: Fri May 10, 2002 9:59 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Try this ..
SET OutputRoot.XML.Billing.(XML.Attribute)day ='01';
SET OutputRoot.XML.Billing.(XML.Attribute)month ='12';


_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
lillo
PostPosted: Mon May 13, 2002 2:03 am    Post subject: Reply with quote

Master

Joined: 11 Sep 2001
Posts: 224

If kirani suggestions doesn´t work try with this:

SET OutputRoot.XML.Billing.(XML.Attribute)day VALUE='01';
SET OutputRoot.XML.Billing.(XML.Attribute)month VALUE='12';

Cheers,

Lillo
Back to top
View user's profile Send private message
CHF
PostPosted: Fri Jan 05, 2007 12:29 pm    Post subject: Reply with quote

Master

Joined: 16 Dec 2003
Posts: 297

Any insight when to use

SET OutputRoot.XML.Billing.(XML.Attribute)day VALUE='01';

versus

SET OutputRoot.XML.Billing.(XML.Attribute)day='01';

I tried searching in the forum, but couldn't get any information....

Thanks.
_________________
CHF
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
vsr
PostPosted: Fri Jan 05, 2007 1:02 pm    Post subject: Reply with quote

Centurion

Joined: 04 Apr 2006
Posts: 104

Code:
Any insight when to use


Lillo is right ! we should use SET OutputRoot.XML.Billing.(XML.Attribute)day VALUE='01';

Syntax is :

OutputRoot.XML.Root_Tag.(XML.Attribute)Your_Tag VALUE= 'Tag_Value';

if we code SET OutputRoot.XML.Billing.(XML.Attribute)day='01'; then (day='01') is considered as whole tag name which is not what you wanted ..

If we give After (XML.Attribute)
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jan 05, 2007 2:33 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

If you are using v6 you should be using XMLNSC, not XML.
If on v5, use XMLNS. The XML domain should not be used in new message flows.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 05, 2007 4:51 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The VALUE clause is specifically documented in the ESQL reference for the SET statement.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak05140_.htm
_________________
I am *not* the model of the modern major general.
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 » Attributes in Output.XML
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.