How to create XML Document with Multiple Repeated Elements
Posted: Wed May 15, 2013 9:58 am
I have a requirement in which i have to generate a xml document with multiple repeated elements using xml output stage. I can able to successfully generate the Xml file with one repeated element, I can't able to create with multiple repeated elemnts. Please help me in achieveng this....here is the scenario
Below is the format which I required
Here InternalRelease, ReleaseIndicator and PerformanceSchedule are repetable elments..I can able to successfully handle InternalRelease and ReleaseIndicator repeatability, but I am not able to handling the PerformanceSchedule..
Below is the format which I am getting..
Instead of creating PerformanceSchedule repeatable heirarchy it is creating seperate record.
Can any one please help me with this..
Thanks in Advance
Below is the format which I required
Code: Select all
<InternalReleaseList>
<InternalRelease>
<TitleName>Higher Ground</TitleName>
<TitleID>38323</TitleID>
<InternalReleaseID>33410</InternalReleaseID>
<RentrakID>64855</RentrakID>
<ReleaseIndicatorList>
<ReleaseIndicator>AMCSelect</ReleaseIndicator>
<ReleaseIndicator>SensoryFriendlyFilm</ReleaseIndicator>
</ReleaseIndicatorList>
<MediaFormatName>35mm</MediaFormatName>
<MPAARatingCode>R</MPAARatingCode>
<PerformanceScheduleList>
<PerformanceSchedule>
<TheatreNumber>2798</TheatreNumber>
<AuditoriumID>4</AuditoriumID>
<ShowDateTime>2011-11-20T16:00:00</ShowDateTime>
<RadiantPerformanceID>82399</RadiantPerformanceID>
</PerformanceSchedule>
<PerformanceSchedule>
<TheatreNumber>2798</TheatreNumber>
<AuditoriumID>4</AuditoriumID>
<ShowDateTime>2011-11-22T13:30:00</ShowDateTime>
<RadiantPerformanceID>82442</RadiantPerformanceID>
</PerformanceSchedule>
<PerformanceSchedule>
<TheatreNumber>2798</TheatreNumber>
<AuditoriumID>4</AuditoriumID>
<ShowDateTime>2011-11-20T13:30:00</ShowDateTime>
<RadiantPerformanceID>82398</RadiantPerformanceID>
</PerformanceSchedule>
<PerformanceSchedule>
<TheatreNumber>2798</TheatreNumber>
<AuditoriumID>4</AuditoriumID>
<ShowDateTime>2011-11-18T10:45:00</ShowDateTime>
<RadiantPerformanceID>82353</RadiantPerformanceID>
</PerformanceSchedule>
</PerformanceScheduleList>
</InternalRelease>
</InternalReleaseList>
Here InternalRelease, ReleaseIndicator and PerformanceSchedule are repetable elments..I can able to successfully handle InternalRelease and ReleaseIndicator repeatability, but I am not able to handling the PerformanceSchedule..
Below is the format which I am getting..
Code: Select all
<InternalRelease>
<TitleName>Higher Ground</TitleName>
<TitleID>38323</TitleID>
<InternalReleaseID>33410</InternalReleaseID>
<RentrakID>64855</RentrakID>
<ReleaseIndicatorList>
<ReleaseIndicator>AMCSelect</ReleaseIndicator>
<ReleaseIndicator>SensoryFriendlyFilm</ReleaseIndicator>
</ReleaseIndicatorList>
<MediaFormatName>35mm</MediaFormatName>
<MPAARatingCode>R</MPAARatingCode>
<PerformanceScheduleList>
<PerformanceSchedule>
<TheatreNumber>2798</TheatreNumber>
<AuditoriumID>4</AuditoriumID>
<ShowDateTime>2011-11-20T16:00:00</ShowDateTime>
<RadiantPerformanceID>82399</RadiantPerformanceID>
</PerformanceSchedule>
</PerformanceScheduleList>
</InternalRelease>
<InternalRelease>
<TitleName>Higher Ground</TitleName>
<TitleID>38323</TitleID>
<InternalReleaseID>33410</InternalReleaseID>
<RentrakID>64855</RentrakID>
<ReleaseIndicatorList>
<ReleaseIndicator>AMCSelect</ReleaseIndicator>
<ReleaseIndicator>SensoryFriendlyFilm</ReleaseIndicator>
</ReleaseIndicatorList>
<MediaFormatName>35mm</MediaFormatName>
<MPAARatingCode>R</MPAARatingCode>
<PerformanceScheduleList>
<PerformanceSchedule>
<TheatreNumber>2798</TheatreNumber>
<AuditoriumID>4</AuditoriumID>
<ShowDateTime>2011-11-22T16:00:00</ShowDateTime>
<RadiantPerformanceID>82443</RadiantPerformanceID>
</PerformanceSchedule>
</PerformanceScheduleList>
</InternalRelease>
Can any one please help me with this..
Thanks in Advance