Iterate over a dataset that was populated with READ-XML without like columns for parent-child...

Discussão em 'StackOverflow' iniciado por fdantas, Julho 24, 2016.

  1. fdantas

    fdantas Administrator Moderador

    I'm currently on Openedge 10.1c. I'm using READ-XML to populate a dataset. I can't change the source XML and was was wondering how you would iterate over the dataset when there isn't a parent child relationship unique keys to use in my join.

    I'll include sample XML and the display loop when I get to my desk.

    In the meantime it's something like this...

    <data>
    <fulfillments>
    <field1>field1</field1>
    <field2>field2</field2>
    <field3>field3</field3>
    <customer>
    <name>test</name>
    </customer>
    </fulfillments>
    <fulfillments>
    <field1>field11</field1>
    <field2>field22</field2>
    <field3>field33</field3>
    <customer>
    <name>test2</name>
    </customer>
    </fulfillments>
    </data>


    After I use read XML I get all the data but trying to iterate over it I don't know how to display customer in to each fulfillment. Instead it will just show all customers for each fulfillment.

    Continue reading...

Compartilhe esta Página