and my ESQL code is
SET OutputRoot.XMLNSC.INSTAT.Envelope.Party.(XMLNSC.Attribute)partyType ='PSI';
SET OutputRoot.XMLNSC.INSTAT.Envelope.Party.(XMLNSC.Attribute)partyRole =Ref.Agent1;
SET OutputRoot.XMLNSC.INSTAT.Envelope.Party.(XMLNSC.Attribute)partyType ='TDP';
SET OutputRoot.XMLNSC.INSTAT.Envelope.Party.(XMLNSC.Attribute)partyRole =Ref.Agent2;
When I execute this code, the 'Party' tag is generated only once and it always picks up the second value, First value is getting replaced.
Is it possible to generate the XML with the above structure, If so, how can it be achieved?
Is it possible to generate the XML with the above structure?
Yes! ( I don't think message broker would be the market leading ESB if it could not write a simple XML document ).
Quote:
If so, how can it be achieved
Declare two reference variables. One to point at InputRoot.Ref, the other pointing at OutputRoot.Envelope.
Then use the CREATE statement to add new elements under the OutputRoot reference.
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