|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML-encoding attribute |
« View previous topic :: View next topic » |
Author |
Message
|
RAIQ |
Posted: Thu Feb 06, 2003 5:14 am Post subject: XML-encoding attribute |
|
|
Novice
Joined: 06 Feb 2003 Posts: 23 Location: Switzerland
|
hi
i use the xml-tab in the messageset-def to define the xml-output message.
so, i can convert mrm -> xml
it works fine, but in the generated xml-message, i'm missing the xml-decl encoding-attribute.
- - - - - - - - - - - - - - - - - -- - - - - - - - - -
wmqi help-doc:
Suppress XML Declaration Indicates whether the XML declaration is suppressed. Select either Yes or No from the drop-down list.
Note: XML Declaration will consist of:
<?xml version="1.0" encoding="..." ??>
or
<?xml version="1.0" encoding="..." standalone="..."?>
If you select Yes ,the declaration is suppressed and the encoding is taken from the MQMD.
Default: No
- - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - -- - - - - - - - - - - - -
acutal:
<?xml version="1.0"?>
expected:
<?xml version="1.0" encoding="ISO-8859-1"?>
any idea, how to set this?
we work with wmqi 2.1 on zOS CSD3
thanx for feedback!
best regards
björn |
|
Back to top |
|
 |
yaakovd |
Posted: Thu Feb 06, 2003 9:06 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Look at ESQL reference:
-- Create an XML Declaration
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") = 'ISO-8859-1';
This ESQL generates the following XML declaration:
<?xml version="1.0" encoding="ISO-8859-1"?> _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
RAIQ |
Posted: Thu Feb 06, 2003 11:32 pm Post subject: XML-encoding attribute |
|
|
Novice
Joined: 06 Feb 2003 Posts: 23 Location: Switzerland
|
hi yaakovd
thanx for feedback!
i know this ESQL, i did it already on this way, as a turnaround.
but i thought that i don't have to do this in a flow. i would like to set a property (or something like that) in the xml-tab of the messageset-definition and so the wmqi generate this 'encoding'-attribute himself.
regards
björn |
|
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
|
|
|
|