|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to creat XML tag with special character? |
« View previous topic :: View next topic » |
Author |
Message
|
lrasalas01 |
Posted: Tue Aug 12, 2008 11:34 pm Post subject: How to creat XML tag with special character? |
|
|
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 |
|
 |
vaibhav_vy |
Posted: Tue Aug 12, 2008 11:58 pm Post subject: |
|
|
Apprentice
Joined: 04 Aug 2008 Posts: 28
|
Please use double-quotes like,
SET OutputRoot.XML.SiebelMessage.ListOfAction.Action."Sub-Area" = '002'; |
|
Back to top |
|
 |
kimbert |
Posted: Wed Aug 13, 2008 12:36 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
lrasalas01 |
Posted: Thu Aug 14, 2008 4:19 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|