Coding IIB or WMB ESQL to use singles quotes in the DOCTYPE declaration

Technote (troubleshooting)


Problem(Abstract)

You use the XML tab within your IBM Integration Bus (IIB) or WebSphere Message Broker (WMB) message to specify the PublicId and the SystemId for the DocType Declaration. You type in the string without any quotes. The system generates these fields with double-quote marks surrounding the string, however the receiving application had specified these strings be surrounded by apostrophes. See example below:

Generated from WebSphere Message Broker (WMB):

<!DOCTYPE ciflob01 PUBLIC "xml file for CIF LOB updates" "CifUpdatedReq.dtd">

Application Requirements Specifications:

<!DOCTYPE ciflob01 PUBLIC 'xml file for CIF LOB updates' 'CifUpdatedReq.dtd'>

You want to know how to generate the single quotes.

Resolving the problem

According to the XML standards a double quote is required where you want a single quote. IIB and WMB follow these XML standards and thus are required to build the DOCTYPE declaration with the double quotes. There is not much that can be done to change this.

You could try converting the data to a BLOB before output, and then replacing the double quotes with single quotes.

The following is the link to the XML standards website:

http://www.w3.org/TR/REC-xml


Cross reference information
Segment Product Component Platform Version Edition
Business Integration IBM Integration Bus Broker 9.0 All Editions

Product Alias/Synonym

WMB MB WebSphere Message Broker MQ Integrator WBIMB WBI-MB MQSI WMQI

Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Message Broker
XML

Software version:

6.1, 7.0, 8.0

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows, z/OS

Reference #:

1082803

Modified date:

2012-12-29

Translate my page

Machine Translation

Content navigation