Re: [HAPI-devel] Placement of ZLR segment

2007-03-28 Thread Jim Krygowski
Hi Bryan-Attached is a test file I've been using for in my unit tests for the transformation. The file was generated using a conformance profile generated by VA's Message Workbench and a sample message generated by NIST's Message Maker. It conforms to the layout described in my original messag

Re: [HAPI-devel] Preserving spaces in XML text nodes

2007-03-28 Thread ggroves
I have been emailing Bryan and James off-list, and Bryan found the issue. I am posting the solution here for anyone else that may encounter it in the future. It has nothing to do with XML at all... leading spaces are being stripped in the parser, before XML-encoding begins. And it isn't really a

Re: [HAPI-devel] Placement of ZLR segment

2007-03-28 Thread Charles D. Fisher
Jim, You may want to just go with Bryan when he says that "you have to customize the message class to put a Z-segment in the middle of a group." HAPI obviously has some default behavior for deciding where an unknown Z-segment belongs when it encounters it in a message in the middle of parsing.