AngieD
13 years agoOccasional Contributor
Populating repeating XML sections from Datasource
Hi. I have an XML request that has several sections. Once of the sections has repeating data. I am stuck on how to populate the repeating sections when the data is coming from one datasource.
In this example the <microchip> section is repeating. I have a response that includes the micochip information. I am using a datasource to pull the information from the response, but I can only get one set of data (microchipID, model and assign date) at a time. I am doing all kinds of crazy things [Multiple datasources, GroovyScript, etc.] to do this. There must be an easier way.
Request:
<chip>
<owner>
<id></id>
<name></name>
<microchip>
<microchipID></microchipID>
<microchipModel></microchipModel>
<assignDate></assignDate>
</microchip>
<microchip>
<microchipID></microchipID>
<microchipModel></microchipModel>
<assignDate></assignDate>
</microchip>
<microchip>
<microchipID></microchipID>
<microchipModel></microchipModel>
<assignDate></assignDate>
</microchip>
</owner>
</chip>
Thank you,
Angie
In this example the <microchip> section is repeating. I have a response that includes the micochip information. I am using a datasource to pull the information from the response, but I can only get one set of data (microchipID, model and assign date) at a time. I am doing all kinds of crazy things [Multiple datasources, GroovyScript, etc.] to do this. There must be an easier way.
Request:
<chip>
<owner>
<id></id>
<name></name>
<microchip>
<microchipID></microchipID>
<microchipModel></microchipModel>
<assignDate></assignDate>
</microchip>
<microchip>
<microchipID></microchipID>
<microchipModel></microchipModel>
<assignDate></assignDate>
</microchip>
<microchip>
<microchipID></microchipID>
<microchipModel></microchipModel>
<assignDate></assignDate>
</microchip>
</owner>
</chip>
Thank you,
Angie