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 change xml msg into txt file

Post new topic  Reply to topic
 how to change xml msg into txt file « View previous topic :: View next topic » 
Author Message
eejar
PostPosted: Thu Oct 20, 2011 4:09 am    Post subject: how to change xml msg into txt file Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Thu Oct 20, 2011 4:15 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kimbert
PostPosted: Thu Oct 20, 2011 4:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Oct 20, 2011 4:30 am    Post subject: Re: how to change xml msg into txt file Reply with quote

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
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 change xml msg into txt file
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.