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 » How to write DOCTYPE declaration in ESQL under XMLNSC domain

Post new topic  Reply to topic
 How to write DOCTYPE declaration in ESQL under XMLNSC domain « View previous topic :: View next topic » 
Author Message
aftab
PostPosted: Wed Dec 10, 2014 7:55 pm    Post subject: How to write DOCTYPE declaration in ESQL under XMLNSC domain Reply with quote

Newbie

Joined: 13 Oct 2014
Posts: 7

Hi,

I am using XMLNSC domain. In my message output I want to add the below line-

<!DOCTYPE NetAnttila_Message SYSTEM "NetAnttila_Message.dtd">

It is easy to add in XMLNS domain but can you give me the ESQL code to create the above declaration using XMLNSC domain.

Thanks in advance
Aftab
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 10, 2014 11:04 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

How are you doing it in an XMLNS domain?
_________________
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
View user's profile Send private message
aftab
PostPosted: Thu Dec 11, 2014 12:47 am    Post subject: Reply with quote

Newbie

Joined: 13 Oct 2014
Posts: 7

In XMLNS it works like this-

SET OutputRoot.XMLNS.(XML.DocTypeDecl)NetAnttila_Message = '';
SET OutputRoot.XMLNS.(XML.DocTypeDecl).(XML.SystemId) = 'NetAnttila_Message.dtd';
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Dec 11, 2014 1:19 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

What does replacing the
XMLNS with XMLNSC
AND
replacing the
XML with XMLNSC
give you?
_________________
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
View user's profile Send private message
aftab
PostPosted: Thu Dec 11, 2014 2:03 am    Post subject: Reply with quote

Newbie

Joined: 13 Oct 2014
Posts: 7

No this does not work, gives below syntax error while deploying the flow-

The correlation name 'XMLNSC.DocTypeDecl' is not valid.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Dec 11, 2014 3:52 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

In that case this post may explain it all

http://www.mqseries.net/phpBB2/viewtopic.php?p=285651&sid=17b51ad8cec73ceec21ccf8b9ba0ed36

you may not be able to use XMLNSC.
_________________
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
View user's profile Send private message
maurito
PostPosted: Thu Dec 11, 2014 3:59 am    Post subject: Reply with quote

Partisan

Joined: 17 Apr 2014
Posts: 358

Code:
XMLNSC.DocumentType


will do the first line

something like
Code:
SET OutputRoot.XMLNSC.(XMLNSC.DocumentType)* NAME = 'NetAnttila_Message';


Then you may be able to fiddle with the NAME value to include SYSTEM etc
for example:
Code:
NAME = 'NetAnttila_Message SYSTEM "fred"';


Code:
SET OutputRoot.XMLNSC.(XMLNSC.DocumentType)* NAME = 'NetAnttila_Message SYSTEM "NetAnttila_Message.dtd"';


will generate
Code:
<!DOCTYPE NetAnttila_Message SYSTEM &quot;NetAnttila_Message.dtd&quot;>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to write DOCTYPE declaration in ESQL under XMLNSC domain
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.