ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML-encoding attribute

Post new topic  Reply to topic
 XML-encoding attribute « View previous topic :: View next topic » 
Author Message
RAIQ
PostPosted: Thu Feb 06, 2003 5:14 am    Post subject: XML-encoding attribute Reply with quote

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
View user's profile Send private message Visit poster's website
yaakovd
PostPosted: Thu Feb 06, 2003 9:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
RAIQ
PostPosted: Thu Feb 06, 2003 11:32 pm    Post subject: XML-encoding attribute Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML-encoding attribute
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.