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 » Parsing Multiple Messages

Post new topic  Reply to topic
 Parsing Multiple Messages « View previous topic :: View next topic » 
Author Message
dcjs
PostPosted: Tue Mar 27, 2007 5:06 am    Post subject: Parsing Multiple Messages Reply with quote

Acolyte

Joined: 10 Nov 2006
Posts: 53
Location: IBM Bangalore

I have a requirement like this

The Input message is
<AddMessage>
<Add>
<a>22</a>
<b>33</b>
</Add>
</AddMessage>
<Submessage>
<Sub>
<a>44</a>
<b>55</b>
</Sub>
</SubMessage>


I have created the message set with both the messages
but iam getting the parser exception for the SubMessage
Back to top
View user's profile Send private message
Bill.Matthews
PostPosted: Tue Mar 27, 2007 5:23 am    Post subject: Re: Parsing Multiple Messages Reply with quote

Master

Joined: 23 Sep 2003
Posts: 232
Location: IBM (Retired)

dcjs wrote:
I have a requirement like this

The Input message is
<AddMessage>
<Add>
<a>22</a>
<b>33</b>
</Add>
</AddMessage>
<Submessage>
<Sub>
<a>44</a>
<b>55</b>
</Sub>
</SubMessage>




That is not a valid, well formed XML message.
_________________
Bill Matthews
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Mar 27, 2007 5:24 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Your message is not well formed XML. You must have a single root tag. If you cannot change the input message you should first parse the message in the BLOB domain, wrap it in a dummy root tag and then re-parse using a ResetContentDescriptor node.
Back to top
View user's profile Send private message
dcjs
PostPosted: Tue Mar 27, 2007 5:37 am    Post subject: Reply with quote

Acolyte

Joined: 10 Nov 2006
Posts: 53
Location: IBM Bangalore

Yup,
I agree that Root tag is not present .
But i didn't frame the question well let me come back with a proper question.

Thank u all
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 » Parsing Multiple Messages
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.