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 IndexWebSphere Message Broker SupportParsing error for HTML message with encoded values

Post new topicReply to topic
Parsing error for HTML message with encoded values View previous topic :: View next topic
Author Message
Jag12
PostPosted: Thu Dec 21, 2017 3:41 am Post subject: Parsing error for HTML message with encoded values Reply with quote

Newbie

Joined: 21 Dec 2017
Posts: 3

Hi All,
I am using MB version 6.1, for which IBM has removed support. Wanted your help in one of the issue we are facing. We have a existing MB flow which accepts the HTML file as BLOB. We parse it as XML.


It works fine for most of the message but now we have some message coming with encoded data. Eg- &nbsp, so it fails with parser error
Request you to help in getting it parsed, What can be done in this scenario. Thanks in advance
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 21, 2017 5:22 am Post subject: Re: Parsing error for HTML message with encoded values Reply with quote

Grand Poobah

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

Jag12 wrote:
Hi All,
I am using MB version 6.1, for which IBM has removed support. Wanted your help in one of the issue we are facing. We have a existing MB flow which accepts the HTML file as BLOB. We parse it as XML.


It works fine for most of the message but now we have some message coming with encoded data. Eg- &nbsp, so it fails with parser error
Request you to help in getting it parsed, What can be done in this scenario. Thanks in advance

Well shouldn't the encoding be   and not &nbsp, ? Barring a typo this is a legitimate parser error because the document is not well formed XML.
See on how to handle this HTML code in XML http://changelog.ca/log/2006/06/12/making_nbsp_work_with_xml_rss_and_atom

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Jag12
PostPosted: Thu Dec 21, 2017 6:20 am Post subject: Reply with quote

Newbie

Joined: 21 Dec 2017
Posts: 3

Hi fjb_saper ,Thanks for the reply, yes &nsbp; in data is coming. Is there any way by which we can parse this BLOB message as XML and read some data using any CCSID or any other logic if the consumer is not able to send the Unicode numerical hexadecimal value ?

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 21, 2017 6:28 am Post subject: Reply with quote

Grand Poobah

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

Jag12 wrote:
Hi fjb_saper ,Thanks for the reply, yes &nsbp; in data is coming. Is there any way by which we can parse this BLOB message as XML and read some data using any CCSID or any other logic if the consumer is not able to send the Unicode numerical hexadecimal value ?

Thanks

Read as a BLOB, cast to char using relevant CCSID, substitute in the char and parse after substitution?

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Jag12
PostPosted: Thu Dec 21, 2017 6:37 am Post subject: Reply with quote

Newbie

Joined: 21 Dec 2017
Posts: 3

fjb_saper wrote:
Jag12 wrote:
Hi fjb_saper ,Thanks for the reply, yes &nsbp; in data is coming. Is there any way by which we can parse this BLOB message as XML and read some data using any CCSID or any other logic if the consumer is not able to send the Unicode numerical hexadecimal value ?

Thanks

Read as a BLOB, cast to char using relevant CCSID, substitute in the char and parse after substitution?

Have fun



We need to pass the same values ( )what we received to one of the system. So while passing it to them as XML it will give error . so is there any solution for this.?
Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 21, 2017 9:45 am Post subject: Reply with quote

Grand Poobah

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

Jag12 wrote:
fjb_saper wrote:
Jag12 wrote:
Hi fjb_saper ,Thanks for the reply, yes &nsbp; in data is coming. Is there any way by which we can parse this BLOB message as XML and read some data using any CCSID or any other logic if the consumer is not able to send the Unicode numerical hexadecimal value ?

Thanks

Read as a BLOB, cast to char using relevant CCSID, substitute in the char and parse after substitution?

Have fun



We need to pass the same values ( )what we received to one of the system. So while passing it to them as XML it will give error . so is there any solution for this.?
Thanks

As this is a pure HTML thing and not an XML value, does using URL encryption work?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mpong
PostPosted: Thu Dec 21, 2017 5:09 pm Post subject: Reply with quote

Centurion

Joined: 22 Jan 2010
Posts: 132

Not sure this is going to work, try it out.

You need to cast as char, replace the char and parse as xml

http://changelog.ca/log/2006/06/12/making_nbsp_work_with_xml_rss_and_atom
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportParsing error for HTML message with encoded values
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.