Hi Brad,

I am fairly certain that I did not follow all you said.  Perhaps an XML sample would 
help the communication of the problem.  Is this sometimes like what you want?

<POLines>
        <SAC value="SAC1">
                <PO1>....</PO1>  (PO1s for SAC1)
                <PO1>....</PO1>
        </SAC>
        <SAC value="SAC2">
                <PO1>....</PO1>  (PO1s for SAC2)
                <PO1>....</PO1>
        </SAC>
        <SAC value="SAC3">
                <PO1>....</PO1>  (PO1s for SAC3)
                <PO1>....</PO1>
        </SAC>
</POLines>

Can you explain the problem a little more fully perhaps in relation to a diagram or 
some visual representation?  

I think I lost your explanation at:  "when there is a new occurrence of the SAC, this 
should stop the population of the remaining PO1's in the first SAC."  What does "stop 
the population" mean exactly?

Steve


At 02:43 PM 7/12/00 -0700, [EMAIL PROTECTED] wrote:
>Hi:
>
>I am an EDI analyst and have been working on an EDI2XML conversion for one
>of our customers and have run into an issue that I cannot resolve. I am
>hoping that someone has had similar experience and will share their solution
>with me. 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. I am able to write individual and repeating nodes for
>the SAC (parent), but ALL PO1s included in the entire 855 are populating the
>XML output at all levels of the SAC: they are not looping at the proper
>level. If anyone has a suggestion, I would greatly appreciate it.
>
>Thank You,
>
>Brad Williams
>Advanced Marketing Services
>EDI Coordinator
>ph(858)457-2500x2355
>fax(858)812-6480
>[EMAIL PROTECTED]
>
>
>
>------   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

Steve Bollinger 408-853-8478
Cisco Systems   GPS-IT XML/EDI Logistics & Maintenance Project






------   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