Joined: 21 Jul 2004 Posts: 150 Location: South Africa, JHB
If I understand your question correctly then this should be easy to achieve.
If you have defined this message in the MRM then you can do something like:
SET "OutputRoot"."MRM"."Subject"[1]."Class" = 'Class1';
SET "OutputRoot"."MRM"."Subject"[1]."Time" = 'Time1';
SET "OutputRoot"."MRM"."Subject"[1]."Day" = 'Day1';
SET "OutputRoot"."MRM"."Subject"[2]."Class" = 'Class2';
SET "OutputRoot"."MRM"."Subject"[2]."Time" = 'Time2';
SET "OutputRoot"."MRM"."Subject"[2]."Day" = 'Day2';
etc. or you can do it in a loop. Your outer tags "<Student>" will automatically be written with the output message.
Basically you reference the repeated structures with an index like [1], [2], etc. Read up on CARDINALITY while you at it to get a better understanding of how this works. _________________ Applications Architect
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