Class | EDI::Message |
In: |
lib/edi4r.rb
lib/edi4r/rexml.rb |
Parent: | Collection_HT |
A "Message" is a special "Collection with header and trailer" It collects "Segment" objects.
Build an XML document tree from
a) the linear sequence of segments b) metadata from the standards DB (attached to each segment)
Track xml parent element for segments by level
Add ‘header’ and ‘trailer’ wrapper element around
header and trailer, if any
Trigger segments and their depending segments get wrapped in a ‘SegmentGroup’ element that bears the group name as its name.