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 » Adding a DTD reference - a problem ??

Post new topic  Reply to topic
 Adding a DTD reference - a problem ?? « View previous topic :: View next topic » 
Author Message
DaveyD
PostPosted: Mon Dec 17, 2001 6:40 am    Post subject: Reply with quote

Novice

Joined: 11 Dec 2001
Posts: 12

Hi,

I am trying to add a DTD reference to a message.
The code seems easy enough :
SET OutputRoot.XML.(XML.DocTypeDecl).(XML.SystemId) = '001_TEST.dtd';

This does indeed add a DTD reference, but it then removes the base elelment XML tag which is '001_TEST' (XML standard).
It only seems to work if the DTD reference is different to the base element. This, however, would cause a problem in the XML parser it meets when it gets to the system that receives this message.
Has anyone got this to work properly ?
Iam on v2.0.1 by the way.

Cheers.
Back to top
View user's profile Send private message
Outdesign
PostPosted: Tue Dec 18, 2001 4:28 am    Post subject: Reply with quote

Apprentice

Joined: 16 Sep 2001
Posts: 38
Location: Hampshire, UK

Not sure if this answers your question but this is something you may be falling foul of ...

When using messages where the XML and DTD declarations are present it is worth noting
that the DTD element and the root element of the message are created at the same level
of the syntax element tree.

As the DTD and root element are normally the same (the same element label or name), then
we have to distinguish between them when refering to them in a path.

For example :

Input Message
=============

<?xml version="1.0"?>
<!DOCTYPE Message PUBLIC "Message.dtd">
<Message>
<FirstName>John</FirstName>
<LastName>Smith</LastName>
</Message>

Compute Node ESQL
=================

/* this path refers to the DTD */
SET OutputRoot.XML.Message ...

/* this path refers to the actual message body called "Message" */
SET OutputRoot.XML.(XML.tag)Message ...
Back to top
View user's profile Send private message Visit poster's website
DaveyD
PostPosted: Tue Dec 18, 2001 8:52 am    Post subject: Reply with quote

Novice

Joined: 11 Dec 2001
Posts: 12

That works - cheers !
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 » Adding a DTD reference - a problem ??
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.