I have some EDI files that supposedly follow the 856 spec (dialect: x12, version: 4010) and when I tried to round-trip it through X12Parser (to xml) and then TransformToX12 (back to edi), the ultimate target file doesn't match with the original input document.
It seems that the issue has to do with the location of the 'CTT' element, which in this OopFactory project is
before the first hierarchical loop (i.e. "SHIPMENT"), but in most of the other documentation I've see (e.g. http://www.edidev.com/samples/business/VbNetGen856Sourcecode.htm and StylusStudio), it comes
at the end of that 1st HL.
Any idea why this might be different? And if I really need it to be round-tripable, what should I do? Attempt to create a 2nd 856 implementation with a different Ansi-856-4010Specification.xml file, in which the //Segment[SegmentId = 'CTT'] comes in the
other location (at the end of the 1st HL)?
Also, can you give the link to the actual spec so I can see what it says?