Re: [HAPI-devel] Create a Message

2011-03-21 Thread James Agnew
Hi George, Are you sure the CR is missing? Many terminal applications don't show segments on a new line when you print out encoded HL7 messages, because HL7 uses "\r" as a delimiter instead of the more normal "\n" or "\r\n". You might try something along the lines of this to check: System.out.pri

[HAPI-devel] Create a Message

2011-03-21 Thread George Michel
Hi, I am trying to use HAPI to create HL7 messages. Similar to the example that uses a DefaultXMLParser, I have been able to create the message using a PipeParser. The problem is that the end of each segment does not have a pipe delimiter nor a carriage return. So there is no break. The exampl