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 » XML parsing error

Post new topic  Reply to topic
 XML parsing error « View previous topic :: View next topic » 
Author Message
PankajS
PostPosted: Tue Jun 30, 2009 2:41 am    Post subject: XML parsing error Reply with quote

Voyager

Joined: 27 Dec 2004
Posts: 82

Hi Guys,

I am using MQInput node to get the XML message from the queue, XMLNSC parser.

In XML pay load business allows characters like '&' .

The Problem is : MQInput node is not able to parse the payload after the first ocurance of character '& '.

For ex.
<Root>
<ID>898989</ID>
<PartyDetails>
<PartyName> H & V </PartyName>
<PartyAdd>1 abc Road</PartyAdd>
<PartyContactNo>21211211</PartyContactNo>
</PartyDetails>
</Root>

In above case, I can NOT see the message tree below <PartyDetails> field in the debugger.It shows the parsing error.


How can i access the complete payload in the compute node following the MQinput node.
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Tue Jun 30, 2009 2:56 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

Why isnt the & encoded correctly ie as &amp; ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jun 30, 2009 2:58 am    Post subject: Re: XML parsing error Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

PankajS wrote:
n XML pay load business allows characters like '&' .


The business might allow it, but the XML specification doesn't!

Try opening your XML in something like IE or XMLSpy - it'll come up as not well formed.

An '&' in an XML doc must be spelt &amp.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Jun 30, 2009 3:38 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

When you get a parsing error
- disconnect the debugger
- check Windows Event Viewer to get the full text of the message or
- if not on Windows, take a user trace to get the full text of the message

Use Trace nodes to see the contents of the message tree, if necessary.
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 » XML parsing error
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.