Author |
Message
|
Jag12 |
Posted: Thu Dec 21, 2017 3:41 am Post subject: Parsing error for HTML message with encoded values |
|
|
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-  , 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 |
|
 |
fjb_saper |
Posted: Thu Dec 21, 2017 5:22 am Post subject: Re: Parsing error for HTML message with encoded values |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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-  , 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  , ? 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 |
|
 |
Jag12 |
Posted: Thu Dec 21, 2017 6:20 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Dec 21, 2017 6:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
Jag12 |
Posted: Thu Dec 21, 2017 6:37 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Dec 21, 2017 9:45 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
mpong |
Posted: Thu Dec 21, 2017 5:09 pm Post subject: |
|
|
Disciple
Joined: 22 Jan 2010 Posts: 164
|
|
Back to top |
|
 |
|