|
From: <ni...@sk...> - 2006-07-14 10:57:36
|
Hi Jim, I'm affraid the xml parser used in HAPI doesn't support character entitie= s. But for an xml document I don't see an immediate reason to use character = entities, you can just specifiy the character in your xml document since = it's UTF-8 encoded. If my explanation is not clear, please send me your xml file ... I'll upd= ate it ... Thanks Regards Nico Hey All-I'm having an issue with XMLSerializer's handling of character en= codings. I'm sending antibiotic sensitivity results via OBX segments in O= RU^R01 messages. The OBX needs to communicate the units used in the measu= rement being reported. In one case, we need to use the character encoding= known as the micro sign. Hopefully, the email will render this correctly= , but the following xml snippet shows what I'd like to send, which is the= HTML character encoding for the micro sign: =B5/mLUnfortunately, once th= e XMLSerializer is done with it I end up with this (again if the characte= rs are mangled, the example shows the ampersand for the micro sign transf= ormed into an HTML character encoding for ampersand followed by the text = string \"micro;\": =B5/mLIf you look at the source code for XMLSerializer= you'll see that it doesn't recognize or respect HTML encoding characters= when it sees them. As soon as it sees an ampersand, regardless of the co= ntext, it transforms it into its HTML charac! ter encoding equvalent.If I try simply sending through the character or its u= nicode equivalent the serializer happily sends it through untouched, but = the system I'm sending to isn't able to cope with it and rejects the mess= age. It will only accept the html character encoding.Does anyone have a w= ork around for this that doesn't involve post processing the XML represen= tation of the message with some kind of search and replace?Thanks.-------= ------------------------------------------------------------------Using T= omcat but need to do more? Need to support webb services, security?Get st= uff done quickly with pre-integrated technology to make your job easierDo= wnload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimoh= ttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642_______________________________________________Hl7api-devel mailing= lis...@li...://lists.sourceforge.net/list= s/listinfo/hl7api-devel |