Posted: Mon Apr 16, 2007 12:09 pm Post subject: Copy Group Element
Apprentice
Joined: 15 Jul 2002 Posts: 45
Hi,
OutputRoot.XML.message.interface.selectSet has few fields:
Field1
Field2
Fieldn
I need to copy the contents of 'selectSet' to 'resultSet' in the OutputMessage. The desired Ouput is:
The desired output is:
OutputRoot.XML.message.interface.
selectSet
Field1
Field2
Fieldn
resultSet
Field1
Field2
Fieldn
I thought this would work:
DECLARE cursor REFERENCE TO OutputRoot.XML.message.interface;
CREATE LASTCHILD OF cursor Domain('XML') NAME 'resultSet' VALUE OutputRoot.XML.message.interface.selectSet;
The resultSet field is created without any child elements. _________________ Cheers
Raghu
Set OutputRoot.XMLNS.message.interface.resultSet = OutputRoot.MRM.XMLNS.message.interface.selectSet; _________________ I am *not* the model of the modern major general.
I had it working with
Set OutputRoot.XML.message.interface.resultSet = OutputRoot.XML.message.interface.selectSet;
I was curious to use 'Create LastChild' in the way listed in my posting.
Lucky me, my project has time for me to experiment with complex code while the simpler stuff already works.
I am not sure why the result is different. _________________ Cheers
Raghu
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