|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to change xml msg into txt file |
« View previous topic :: View next topic » |
Author |
Message
|
eejar |
Posted: Thu Oct 20, 2011 4:09 am Post subject: how to change xml msg into txt file |
|
|
Novice
Joined: 05 Aug 2011 Posts: 14
|
hi frends,
i have a msg it is in xml file, so that will be change it to txt msg. how we will convert it.
eg:
input:
<emplist><ename>surya</ename></emplist>
output:
emplist
ename surya
?
how we can solve this solution. i want esql code for this |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Oct 20, 2011 4:15 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Code: |
CAST ( InputRoot.someparsername.emplist.ename AS CHARACTER ) |
Have you taken the WM663 training class provided by IBM? If not, why not? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
kimbert |
Posted: Thu Oct 20, 2011 4:30 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
The usual answer is 'create a message set and a message definition file'.
If you don't want to follow that advice then feel free to use ESQL / Java / PHP to do the transformation. But make sure that you understand *why* you are doing the job in a non-standard way. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 20, 2011 4:30 am Post subject: Re: how to change xml msg into txt file |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
eejar wrote: |
how we can solve this solution. i want esql code for this |
Map the XSD, then tell WMB to output it as a text file?
This is very, very simple stuff. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|