Unusual Delimiters?

Comments

2 comments

  • Avatar
    Admin

    Hello,

    When reading EDI files, the delimiters are automatically resolved from the ISA segment. The framework is able to parse EDI files with \ as segment separator (or any other separator) without any problems.

    When writing EDI files, the framework will use the default separators per the standard, to generate the output. If you need a different set then you pass in a new Separators object to the writer constructor as described in the SDK here (line 102) and documentation here

    If you are trying to parse a transaction only, without an ISA envelope, then you have to pass in the separators to the reader constructor, sample here (line 368).

    You don't have to modify anything at all.

    Best,

    Don

  • Avatar
    Jheminger

    After reviewing the EDI in question I see that you are correct.

    When I first started reviewing the library I wasn't sure how to ready the data.

    Looking at it again I see that the data is reading just fine.

    Thanks!

Please sign in to leave a comment.