|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
  |
|
Adding Xml attribute Encoding to the OutputRoot |
View previous topic :: View next topic |
Author |
Message
|
pvsr |
Posted: Mon May 06, 2013 3:44 am Post subject: Adding Xml attribute Encoding to the OutputRoot |
|
|
Novice
Joined: 06 May 2013 Posts: 12
|
Currently, each record starts with the XML declaration: <?xml version="1.0"?>
Change so each record starts with the XML declaration: <?xml version="1.0" encoding=”iso-8859-1”?>
i have tried using the ESQL code but its not working. in MQInuput the parser sets to xml domain . but in code there is some transformations that was done in MRM. so can i place the xml for getting the output
CREATE FIRSTCHILD OF OutputRoot.XML TYPE XML.XmlDeclaration;
SET OutputRoot.XML.(XML.XmlDeclaration)*.(XML.Attribute)Version = '1.0';
SET OutputRoot.XML.(XML.XmlDeclaration)*.(XML.Attribute)Encoding = 'iso-8859-1';
Help me where i should make changes and how to add that attribute |
|
Back to top |
|
 |
mqjeff |
Posted: Mon May 06, 2013 4:53 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Anything that starts with "OutputRoot.XML." or "InputRoot.XML" is wrong.
It should always start with "OutputRoot.XMLNSC" or "InputRoot.XMLNSC".
Likewise anything that looks like "(XML." is wrong, because it should always look like "(XMLNSC.". |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon May 06, 2013 5:00 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Moved to Message Broker forum. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
pvsr |
Posted: Thu May 09, 2013 4:05 am Post subject: |
|
|
Novice
Joined: 06 May 2013 Posts: 12
|
but here am working with mrm domain..
for that how cahn i add the code and get the output with version and encoding as headers. |
|
Back to top |
|
 |
kash3338 |
Posted: Thu May 09, 2013 4:09 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
This is a double post of this.
Please follow one thread so that you get clear response and also it helps others to refer later. |
|
Back to top |
|
 |
|
|
  |
|
Page 1 of 1 |
|
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
|
|
|
|