Menu

#139 Escape secuences aren't supported with XML

closed-fixed
None
5
2012-11-22
2012-04-07
No

HAPI can't support the normalized expression of escape secuences in XML

The "XML_Encoding_Rules_for_HL7_v2_Messages" document define at 2.7.8.1 point than ER7 escape secuences should be expressed as:
<escape V="__escape_secuence___"/>

As:

\H\ Should be expressed as <escape V="H"/>
\N\ Should be expressed as <escape V="N"/>
\.br\ .... <escape V=".br"/>
\.spn\ .... <escape V=".spn"/>
\.in±n\.... <escape V=".in±n"/>
\.ti±n\ .... <escape V=".ti±n"/>

But, HAPI:

* When generating XML, creates the ER7 form (\.br\, \H\, etc..)
* When parsing XML, can't understand this syntax, and cant

This is related to the artifact ID 1239414:
https://sourceforge.net/tracker/index.php?func=detail&aid=1239414&group_id=38899&atid=423835

Discussion

  • Alberto Saez Torres

    Java test program to read and parse XML escape characters

     
  • Christian Ohr

    Christian Ohr - 2012-08-31
    • assigned_to: nobody --> ohr
     
  • Christian Ohr

    Christian Ohr - 2012-08-31

    Added required functionality. May need some cleanup though.

     
  • Christian Ohr

    Christian Ohr - 2012-11-22
    • status: open --> closed-fixed
     

Log in to post a comment.