Posted: Thu Oct 18, 2007 1:55 am Post subject: Encoding value in MRM XML Message
Newbie
Joined: 18 Oct 2007 Posts: 1 Location: Bengalooru
Hi,
I am using WMB V6.0.2 toolkit for development.
We are having a message set in MRM domain and the physical format is XML. Message flow constructs a message according to this message set and puts it into a queue. We need to set encoding in the message along with the version. I am able to get the version and its value in the output message. But not able to produce encoding attribute with custom value (Not the one which will be generated automatically by the message set).
I tried to use below lines of code in my esql file...
Code:
SET OutputRoot.MRM.(XML.XmlDecl).(XML."Encoding") = 'UTF-8';
But when i write this code and try to save the file the toolkit hangs saying "Building workspace"... and it will not come out.
Can anyone tell me how to set custoised value in the encoding field instead of "ibm-850_P100-1995"...
First off, that code is entirely wrong. You can not use those constants that belong to the XML/XMLNS domain with the MRM domain.
Second, if you need to set the encoding in an MRM message, then you should be able to set this property on the message set. _________________ I am *not* the model of the modern major general.
Use the Search button and search for for 'MRM encoding' on this forum.
If you really need to control the output XML precisely, maybe you should be using XMLNSC.
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