Posted: Thu Jun 06, 2002 12:18 pm Post subject: assigning id and reference attributes
Master
Joined: 16 May 2001 Posts: 255
Hi,
I am having trouble assigning multiple attributes to an XML aggregate that occurs multiple times. Has anyone done this? I get the first attribute, the id to come out but then the LocationRef comes out as a tag.
Here is an example of what I am trying to achieve:
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
Karen,
I hope following code will give you message in above format.
Code:
SET OutputRoot.XML.MSG.Driver[1].(XML.Attribute)ID = 'Driver-01';SET SET SET OutputRoot.XML.MSG.Driver[1].(XML.Attribute)LocationRef = 'Location-01';
SET OutputRoot.XML.MSG.Driver[1].DriverName = 'Joe Smith';
SET OutputRoot.XML.MSG.Driver[2].(XML.Attribute)ID = 'Driver-02';
SET OutputRoot.XML.MSG.Driver[2].(XML.Attribute)LocationRef = 'Location-02';
SET OutputRoot.XML.MSG.Driver[2].DriverName = 'Jill Smith';
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
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