|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML parsing error |
« View previous topic :: View next topic » |
Author |
Message
|
PankajS |
Posted: Tue Jun 30, 2009 2:41 am Post subject: XML parsing error |
|
|
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 |
|
 |
WMBDEV1 |
Posted: Tue Jun 30, 2009 2:56 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
Why isnt the & encoded correctly ie as & ? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jun 30, 2009 2:58 am Post subject: Re: XML parsing error |
|
|
 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 &. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jun 30, 2009 3:38 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|