Author |
Message
|
broker_new |
Posted: Wed Feb 14, 2007 11:27 am Post subject: Formatting the Output |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
I'm trying to get this in the output
<?xml version="1.0" encoding="ISO-8859-2">
<Mensaje>
.......
........
</Mensaje>
I don't know how to get the first line (in red)
I have done the following if the message domain is XML
SET OutputRoot.XML.(XML.XmlDecl)='';
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version)='1.0';
SET OutputRoot.XML.(XML.XmlDecl).(XML."Encoding")='ISO-8859-2';
For Message Domain =MRM what should i need to get the encoding="ISO-8859-2". |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 14, 2007 11:45 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
vsr |
Posted: Wed Feb 14, 2007 12:58 pm Post subject: |
|
|
Centurion
Joined: 04 Apr 2006 Posts: 104
|
As Jeff mentioned and assuming MB V6 ,
Set 'XML Encoding' in the Physical properties of the Message Set to 'As document text' ( make sure that you didn't select 'Supress XML Declaration' option )
Broke should generate the Encoding values in the output XML tree or else you can use XMLNS domain |
|
Back to top |
|
 |
broker_new |
Posted: Wed Feb 21, 2007 10:55 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
Set 'XML Encoding' in the Physical properties of the Message Set to 'As document text'..
I have done that and deployed to the broker but iam getting
encoding as encoding="ibm-437_P100-1995"? |
|
Back to top |
|
 |
kimbert |
Posted: Wed Feb 21, 2007 1:59 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Are you certain that the code page which you have set for the output message is equivalent to ISO 8859-2. This help topic http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.eb.doc/ac00408_.htm seems to put them in different categories.
At the end of the day, the only way to control the Encoding attribute emitted by the MRM XML parser is to fiddle with the output CCSID. If that is not enough, you could always try using XMLNSC ( assuming that you do not need to validate your message ). |
|
Back to top |
|
 |
broker_new |
Posted: Thu Feb 22, 2007 7:43 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
I have set the CCSID to 819 in the MQMD .
It Worked well.
Thanks . |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 22, 2007 1:40 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
broker_new wrote: |
I have set the CCSID to 819 in the MQMD .
It Worked well.
Thanks . |
What is more important is the value you set it to in the OutputRoot.Properties....  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|