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 Special Characters and Mainframe

Post new topic  Reply to topic
 XML Special Characters and Mainframe « View previous topic :: View next topic » 
Author Message
gabbar
PostPosted: Thu Aug 14, 2003 6:24 am    Post subject: XML Special Characters and Mainframe Reply with quote

Acolyte

Joined: 10 Dec 2002
Posts: 50

Hello,

I have an interesting situation at hand. We have a broker running on Mainframe. Our message flows take the XML messages as input from the mainframe queues. To avoid the problem with special characters(', ", <, >, &), we have decided on wrapping such elements in CDATA sections like in the following example:

<ElemenName><![CDATA[ Our Data with special characters ]]></ElementName>

But the problem here is that, the emulator that we use, cannot type [ and ]. And at this point I am unable to find hex values for those characters in EBCDIC. We've tried hex codes based on an EBCDIC code page, but those didn't work.

I suppose that this is a fairly common problem for people working with XML, MQSI on mainframe.

My questions:
1. Is using CDATA sections a right solution?
2. If yes, can you provide me the hex values for [ and ] on mainframe?
If no, what is an alternate approach to deal with special characters.

Thanks


Last edited by gabbar on Thu Aug 14, 2003 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
rwa
PostPosted: Thu Aug 14, 2003 7:00 am    Post subject: Reply with quote

Voyager

Joined: 22 Jan 2002
Posts: 76
Location: Duesseldorf/Germany

Hi,

special characters can be written in there long form:

< &lt;
> &gt;
& &amp;
' &apos;
" &quot;
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gabbar
PostPosted: Thu Aug 14, 2003 7:13 am    Post subject: Reply with quote

Acolyte

Joined: 10 Dec 2002
Posts: 50

Thanks for the reply. We chose not to replace those characters with their escape sequences due to performance issues. We found wrapping with CDATA is more efficient than checking each character in every message, specially when dealing with thousands of transactions.
Back to top
View user's profile Send private message Visit poster's website
scaryjase
PostPosted: Fri Aug 15, 2003 2:20 am    Post subject: Reply with quote

Novice

Joined: 17 Jul 2003
Posts: 22

oh, the fun we've had with square brackets...

try DD and A8.
or try B1 and BB.

these might work. and then again...
_________________
scary
Back to top
View user's profile Send private message MSN Messenger
kirani
PostPosted: Fri Aug 15, 2003 3:23 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Which application is feeding your message flow? Is it running on M/F?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
gabbar
PostPosted: Mon Aug 18, 2003 5:55 am    Post subject: Reply with quote

Acolyte

Joined: 10 Dec 2002
Posts: 50

Thanks for the reply. It's a COBOL application running on Mainframe. It just builds an XML String with CDATA sections in it. But, the characters [ and ] are not part of EBCDIC character set, so we cannot type them. We are using hex codes 0xAD and 0xBD instead, which was of not much help.

Thanks
Back to top
View user's profile Send private message Visit poster's website
gabbar
PostPosted: Wed Aug 20, 2003 5:31 am    Post subject: Reply with quote

Acolyte

Joined: 10 Dec 2002
Posts: 50

For now we have resorted to replacing all the special characters with their escape sequences, to continue with the project. However, we would really like to use the CDATA sections. If anyone comes across a solution for this problem please update this post.

Thanks all for the replies.
Back to top
View user's profile Send private message Visit poster's website
gabbar
PostPosted: Fri Oct 03, 2003 11:37 am    Post subject: Solution Reply with quote

Acolyte

Joined: 10 Dec 2002
Posts: 50

To wrap this topic:

BA and BB are the right hex codes for square brackets in EBCDIC. They worked for us.

Thanks all
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 Special Characters and Mainframe
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.