Posted: Fri Nov 11, 2011 10:44 am Post subject: CDATA in XMLNSC message
Master
Joined: 20 Mar 2008 Posts: 215
I have tried various options but am getting nowhere fast
I want the value to be surrounded with a CDATA so what would i need to change on this statement please
This is the end result required
<field name="ProductDesc" type="VARCHAR">MR & MRS SMITH HANDBAGS</field>
so i have the code
Code:
CREATE LASTCHILD OF insertionRef TYPE Name NAME 'field';
-- Set the name XML attribute
SET insertionRef.field[<].(XMLNSC.Attribute)name = name;
-- Set the type XML attribute
SET insertionRef.field[<].(XMLNSC.Attribute)type = type;
where name equates to ProductDesc
and type equates to VARCHAR
but I Want the value enclosed in CDATA
I have tried
Code:
SET insertionRef.(XMLNSC.CDataField)field[<] VALUE = valueRef;
and
Code:
SET insertionRef.field[<].(XMLNSC.CDataField) = valueRef;
neither which achieves this
and do not know how you would do it if you did it as a CREATE statement
or maybe i just having a thick moment
Thx _________________ -------- *
“Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.”
Apparently a very thick moment.
You forgot that before inserting it into the CDATA field you had to serialize it using ASBITSTREAM _________________ MQ & Broker admin
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