Re: [HAPI-devel] Parsing not putting in line breaks

2013-05-14 Thread James Agnew
Hi Ryan, Is there any chance it's just an artifact of the way it's bring printed to the console? I'm sure you already know this, but HL7 uses unusual line endings (\r) as the segment delimiter and sometimes this can appear strangely when printed. It might be worth printing the encoded message stri

[HAPI-devel] Parsing not putting in line breaks

2013-05-13 Thread Ternier, Ryan
I'm attempting to parse from XML to HL7v2 and I'm having some issues with line breaks - they're not getting put in. Any thoughts? The XML I have is valid, and it's producing something like: MSH|^~\&|BCHCIM|HCIM|VCHA_LION|VCHA9387b270-0769-49af-8902-c1a68c0d3e5f|NE MSA|1|2|BCHCIM.FC.0.0