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 » Use of XML.attr

Post new topic  Reply to topic
 Use of XML.attr « View previous topic :: View next topic » 
Author Message
NickB
PostPosted: Wed Oct 31, 2001 6:32 am    Post subject: Reply with quote

Centurion

Joined: 20 May 2001
Posts: 107
Location: Zurich Financial Services

Here is the following output XML I'm trying to create (which although looks strange, is perfectly valid):

---------------------------------
<ClaimEvent ClaimNumber="2101234567" AssignedOffice="10" ClaimSeries="2"
OldAmount="100.00" NewAmount="1000.00" ChangeInAmount="900.00" ValNId="CVWCM">
<EventType EventType="ClaimReserveIncrease"></EventType></ClaimEvent>
---------------------------------


Here is my attempt at generating this within a compute node:

---------------------------------
SET OutputRoot.Properties.MessageFormat='XML';
SET "OutputRoot".XML.ClaimEvent.(XML.attr)ClaimNumber = '2101234567';
SET "OutputRoot".XML.ClaimEvent.(XML.attr)AssignedOffice = '10';
SET "OutputRoot".XML.ClaimEvent.(XML.attr)ClaimSeries = '2';
SET "OutputRoot".XML.ClaimEvent.(XML.attr)OldAmount = '100.00';
SET "OutputRoot".XML.ClaimEvent.(XML.attr)NewAmount = '1000.00';
SET "OutputRoot".XML.ClaimEvent.(XML.attr)ChangeInAmount = '900.00';
SET "OutputRoot".XML.ClaimEvent.(XML.attr)ValNId = 'CVWCM';
SET "OutputRoot".XML.ClaimEvent.EventType.(XML.attr).EventType = 'ClaimReserveIncrease';
---------------------------------


But unfortunately, this is what I get as output:

---------------------------------
<ClaimEvent ClaimNumber="2101234567" AssignedOffice="10" ClaimSeries="2" OldAmount="100.00" NewAmount="1000.00" ChangeInAmount="900.00" ValNId="CVWCM"><EventType/></ClaimEvent>
---------------------------------

You'll notice the complete lack of the attribute list within the "EventType" tag!

Does anyone know what I've done wrong?

Back to top
View user's profile Send private message
Miriam Kaestner
PostPosted: Thu Nov 01, 2001 2:17 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2001
Posts: 103
Location: IBM IT Education Services, Germany

It is the dot after the (XML.attr) in ...EventType.(XML.attr).EventType which must be omitted.
Back to top
View user's profile Send private message Send e-mail
NickB
PostPosted: Thu Nov 01, 2001 2:40 am    Post subject: Reply with quote

Centurion

Joined: 20 May 2001
Posts: 107
Location: Zurich Financial Services

Miriam

Thanks for this. Would you believe that I just spotted this problem about 2 minutes ago!
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 » Use of XML.attr
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.