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 handle special characters in ESQL

Post new topic  Reply to topic
 How to handle special characters in ESQL « View previous topic :: View next topic » 
Author Message
RudraHubli
PostPosted: Wed Jan 21, 2015 3:21 am    Post subject: How to handle special characters in ESQL Reply with quote

Apprentice

Joined: 18 Oct 2014
Posts: 28

Hi All,

Getting XML parsing error for below data -
<AgentName>PIONEER FILM &amp; TV PROD LTD</AgentName>

Any idea how to handle it ESQL and avoid xml parsing error which is containing "&amp;" ??

Regards,
Rudra
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 21, 2015 3:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

Why would you be getting a parsing error over this?
What parser are you using?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
RudraHubli
PostPosted: Wed Jan 21, 2015 3:33 am    Post subject: Reply with quote

Apprentice

Joined: 18 Oct 2014
Posts: 28

I am getting above data as response from backend system and its failing in our side i mean after receivng response and parsing with XMLNS parser.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 21, 2015 3:36 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

RudraHubli wrote:
I am getting above data as response from backend system and its failing in our side i mean after receivng response and parsing with XMLNS parser.

Did you run a user debug trace. What did it yield. I would expect that the parsing error is either prior or post or due to a bad/missing/incorrect namespace.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
RudraHubli
PostPosted: Wed Jan 21, 2015 3:41 am    Post subject: Reply with quote

Apprentice

Joined: 18 Oct 2014
Posts: 28

I am getting error in SIT testing on AIX environment. Not able to trace it exactly.


Error is -An XML parsing error 'The entity name must immediately follow the '&' in the entity reference.'

I dont think its related to namespace issue.
Back to top
View user's profile Send private message
RudraHubli
PostPosted: Wed Jan 21, 2015 3:42 am    Post subject: Reply with quote

Apprentice

Joined: 18 Oct 2014
Posts: 28

How to handle those type of data in ESQL ???
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jan 21, 2015 3:51 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I am getting error in SIT testing on AIX environment. Not able to trace it exactly.
Why can you not trace it?
https://www.ibm.com/developerworks/community/blogs/c7e1448b-9651-456c-9924-f78bec90d2c2/entry/diagnostic_tools_available_in_websphere_message_broker_and_ibm_integration_bus?maxresults=5&msgid=1&lang=en

It is hard to help you without seeing the full text of the error message. The article will tell you how to obtain that. Failing that, you should at least quote the exception list.

FWIW, I think the XML that you posted is probably not what the XMLNS parser is receiving. Is it possible that the & has been encoded twice, producing
Code:
&amp;amp;
?

One more question: Why are you using the XMLNS domain. XMLNSC is the recommended parser for all new message flows.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
RudraHubli
PostPosted: Wed Jan 21, 2015 3:56 am    Post subject: Reply with quote

Apprentice

Joined: 18 Oct 2014
Posts: 28

Even i also thinking same...& has been encoded twice i.e
&amp;amp;


If that is case...how to hanlde it in ESQL ??


I am using XMLNSC parser..sorry typo mistake.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jan 21, 2015 6:06 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
If that is case...how to hanlde it in ESQL ??
Don't. IF our guess is correct then the input XML is badly-formed. So you would need find why it is happening and ( if possible ) fix the application that generates the XML.
But first you need to diagnose the error that is being reported by the flow.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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 handle special characters in ESQL
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.