Brad Williams wrote:

   I am converting an EDI 855 to and XML doc for our customer and
   cannot resolve the following looping structure issue. We are
   passing a value in the SAC segment that is to contain all PO1
   segments, that immediately follow, as child nodes of the SAC
   in the XML output. However, when there is a new occurrence of
   the SAC, this should stop the population of the remaining PO1's
   in the first SAC. Only the PO1s that directly follow the last
   SAC should be contained in the nearest upper level SAC. Of
   course the element nodes have different names than the EDI,
   but this is the structure that I am looking for.

Brad:

Which XML/EDI "standard" are you using?  This sounds like some kind of
approach using XML wrappers around X12.  But simple XML wrapper
techniques usually mimic the X12 structure. In the case of the 855 PO
Ack, the SAC is contained in the detail PO1 loop (i.e., there are one or
more Service, Promotion, Allowance, or Charge Information segments per
PO1 line item).  But you've made it sound like the nesting is reversed
in your XML rendition.

William J. Kammerer
FORESIGHT Corp.
4950 Blazer Memorial Pkwy.
Dublin, OH USA 43017-3305
+1 614 791-1600

Visit FORESIGHT Corp. at http://www.foresightcorp.com/
"Commerce for a New World"




------   XML/edi Group Discussion List   ------
Homepage =  http://www.XMLedi-Group.org

Unsubscribe =  send email to: [EMAIL PROTECTED]
Leave the subject and body of the message blank

Questions/requests:  [EMAIL PROTECTED]

To receive only one message per day (digest format) 
send the following message to [EMAIL PROTECTED], 
(leave the subject line blank) 

digest xmledi-group your-email-address

To join the XML/edi Group complete the form located at:
http://www.xmledi-group.org/xmledigroup/mail1.htm


Reply via email to