Author |
Message
|
vijayakumar |
Posted: Thu Sep 16, 2010 9:34 pm Post subject: Format of the message |
|
|
Centurion
Joined: 01 Aug 2010 Posts: 101
|
i am trying to post a message from WMB 6.1 , in MQ the message is like
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Messages><publish>etXItem</publish><rige><family>XI</family><type>Cre</type><id>500029213</id><rig>
can anyone help me why i am getting like this < before the tag ? find below the code .
SET OutputRoot.XML.(XML.XmlDecl) = '';
-- Set the Version within the XML Declaration
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
-- Set the Encoding within the XML Declaration
SET OutputRoot.XML.(XML.XmlDecl).(XML."Encoding") = 'UTF-8';
-- Set Standalone within the XML Declaration
SET OutputRoot.XML.(XML.XmlDecl).(XML.Standalone) = 'yes';
set OutputRoot.XML.Messages.publish=
Environment.Variables.Message.publishname;
set OutputRoot.XML.Messages.ril.family=
Environment.Variables.Message.family;
set OutputRoot.XML.Messages.ril.type=
Environment.Variables.Message.type;
set OutputRoot.XML.Messages.ril.id=
Environment.Variables.Message.id; |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Sep 16, 2010 10:25 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Code: |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
Translates to...
Code: |
<xml version="1.0" encoding="UTF-8" standalone="yes">
|
Does this make some sense now?
I see you are trying to use the now depreciated XML parser domain. Please change it to be XMLNSC or you will most certainly face the wrath of 'kimbert'
(That includes the Attributes)
Take a user trace of the ${Root} and post it here. This way we can see more of your whole output message tree. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
vijayakumar |
Posted: Sun Sep 19, 2010 10:38 pm Post subject: |
|
|
Centurion
Joined: 01 Aug 2010 Posts: 101
|
but we are not using any message set for this message . If we use XMLNSC , we have to provide the message set rite . |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Sep 20, 2010 1:21 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
vijayakumar wrote: |
but we are not using any message set for this message . If we use XMLNSC , we have to provide the message set rite . |
What happens when you try to use XMLNSC without a message set? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 20, 2010 4:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
vijayakumar wrote: |
If we use XMLNSC , we have to provide the message set rite . |
What makes you think that? If "think" is the word I'm looking for?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|