Thanks. I did this, but I need the message to look like:
<?xml version=”1.0″?>
<IBRequest>
<From>
<RequestingNode>BLABLA</RequestingNode>
<OrigTimeStamp>2008-03-06T03:11:59.131-0200</OrigTimeStamp>
<Password>PWD</Password>
</From>
<MessageName>UPD</MessageName>
<MessageType>async</MessageType>
<ContentSections>
<ContentSection>
<Headers>
<version>VERSION_1</version>
</Headers>
<Data><![CDATA[<?xml version=’1.0′?>
<Messages>
<Message>bla</Message>
</Messages>
]]></Data>
</ContentSection>
</ContentSections>
</IBRequest>
and it currently looks like:
<?xml version=”1.0″?>
<IBRequest>
<From>
<RequestingNode>BLABLA</RequestingNode>
<OrigTimeStamp>2008-03-06T03:11:59.131-0200</OrigTimeStamp>
<Password>PWD</Password>
</From>
<MessageName>UPD</MessageName>
<MessageType>async</MessageType>
<ContentSections>
<ContentSection>
<Headers>
<version>VERSION_1</version>
</Headers>
<Data>
<Messages>
<Message>bla</Message>
</Messages>
</Data>
</ContentSection>
</ContentSections>
</IBRequest>
I need to somehow wrap the xml in the <Data> node with the CDATA & retain the xml declaration… I am thinking of using a message assignment to pull all contents of the <Data> node and changethe datatype to string, prepend & append the required tags, then use xpath to set the value…
any ideas on how to do this? or if I am on the right path?