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 DOCTYPE Error

Post new topic  Reply to topic
 XML DOCTYPE Error « View previous topic :: View next topic » 
Author Message
goldym
PostPosted: Tue Jul 05, 2005 9:39 am    Post subject: XML DOCTYPE Error Reply with quote

Centurion

Joined: 24 Jun 2005
Posts: 116

Has anyone seen when the DOCTYPE causes your xml path to fail.

Whenever this is in my xml which I know tells the parser where to go the validate this xml, setting my labelname gets path does not exist?



<!DOCTYPE Trade SYSTEM "http://advantage.nbgfn.com/sysdata/dtd/AdvTrade.dtd">

Does anyone know how to fix this?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 05, 2005 9:55 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Can we see your ESQL?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
goldym
PostPosted: Tue Jul 05, 2005 10:18 am    Post subject: Reply with quote

Centurion

Joined: 24 Jun 2005
Posts: 116

ESQL:

DECLARE labelname CHAR;
SET labelname = InputRoot.XML.Trade.(XML.Attribute)"productName";


IF labelname = 'Fixed Swap' THEN

SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelname = labelname;



ELSE

IF labelname = 'MTM Cross Currency Swap' THEN

SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelname = labelname;

ELSE

IF labelname = 'Swap' THEN

SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelname = labelname;

ELSE


SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelname = 'Undefined';

END IF;
END IF;
END IF;

XML:
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 05, 2005 10:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

goldym wrote:
SET labelname = InputRoot.XML.Trade.(XML.Attribute)"productName";


That will always be NULL.

http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.etools.mft.doc/ac17320_.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Tue Jul 05, 2005 10:32 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Try:
Code:
SET labelname = InputRoot.XML.(XML.Element)Trade.(XML.Attribute)"productName";

Cheers,
Eddie
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
goldym
PostPosted: Tue Jul 05, 2005 10:41 am    Post subject: Reply with quote

Centurion

Joined: 24 Jun 2005
Posts: 116

SET labelname = InputRoot.XML.(XML.Element)Trade.(XML.Attribute)"productName";


Worked thanks so much. Although i don't think I understand why.
Back to top
View user's profile Send private message
EddieA
PostPosted: Tue Jul 05, 2005 3:10 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
(XML.Element)Trade

Is making the ESQL look for an XML Element called trade. Otherwise it looks for the first "element" called Trade, which in your example happens to be the Doctype. So, without the (XML.Element) qualifier, your ESQL was looking for "productName" in the Doctype.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » XML DOCTYPE Error
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.