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 creat XML tag with special character?

Post new topic  Reply to topic
 How to creat XML tag with special character? « View previous topic :: View next topic » 
Author Message
lrasalas01
PostPosted: Tue Aug 12, 2008 11:34 pm    Post subject: How to creat XML tag with special character? Reply with quote

Novice

Joined: 16 Jul 2008
Posts: 14

Hi,

I am creating XML message from fixed length string. If I try to create following tag, I getting syntax error for ESQL module.
Code:
SET OutputRoot.XML.SiebelMessage.ListOfAction.Action.Sub-Area = '002';

If I remove the hyphen between 'Sub' and 'Area', it works. But the application which reads this XML needs to have 'Sub-Area'. How can I create the XML tag with such characters?

Thanks.
Back to top
View user's profile Send private message
vaibhav_vy
PostPosted: Tue Aug 12, 2008 11:58 pm    Post subject: Reply with quote

Apprentice

Joined: 04 Aug 2008
Posts: 28

Please use double-quotes like,

SET OutputRoot.XML.SiebelMessage.ListOfAction.Action."Sub-Area" = '002';
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Aug 13, 2008 12:36 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

btw, this is not an XML issue. Your SET statement contains a field reference, and you should check the rules on field reference syntax: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/topic/com.ibm.etools.mft.doc/ak04861_.htm
Back to top
View user's profile Send private message
lrasalas01
PostPosted: Thu Aug 14, 2008 4:19 am    Post subject: Reply with quote

Novice

Joined: 16 Jul 2008
Posts: 14

Thanks vaibhav,
It solved the problem. Was so simple.

And thanks kimbert for that link. That was exactly what I searched for before posting this question, but couldn't find.
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 creat XML tag with special character?
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.