Posted: Wed Aug 23, 2006 5:02 am Post subject: Issues with CWF and XML- URGENT
Acolyte
Joined: 18 Jan 2004 Posts: 52
We have a scenario where the input could be either XML or non-XML(potentially TDS).As a result the input node is set to BLOB.
After processing, we need to add the palyload to a XML structure at output-
Code is-
CREATE LASTCHILD of OutputRoot DOMAIN 'XML';
SET OutputRoot.Properties.MessageDomain = 'XML';
SET OutputRoot.XML.(XML.XmlDecl) = '';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Encoding) = 'UTF-8';
SET OutputRoot.XML.Payload=CAST(InputRoot."BLOB"."BLOB" AS CHARACTER CCSID 1208);
This works fine if the input BLOB is TDS eg(123444444)
However if it is a XML , the output on the Q has <,> characters.
Is there a way to resolve this?
You shouldn't be using the XML domain. At a minimum you should be using XMLNS, and ideally using XMLNSC. You don't say which version (v5 or v6) of Broker you're using -if v6 you should be using XMLNSC.
You also don't explain why CWF is in your message title, when you are only working with XML and TDS.
You should also probably identify whether the data is XML or TDS, and then attach it as character data if TDS or create a parsed XMLNS/C field from the BLOB data if it's XML. _________________ I am *not* the model of the modern major general.
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