I have XML data that I need to layout like a table. I will be using this on multiple pages with different columns needed for different pages.
<Videos>
<Video ID="1">
<Title>Video #1</Title>
<Img>http//www.test.com/Images/Img1.jpg</Img>
<URL>http://www.youtube.com/watch?v=ABCDE12345</URL>
</Video>
<Video ID="2">
<Title>Video #2</Title>
<Img>http//www.test.com/Images/Img2.jpg</Img>
<URL>http://www.youtube.com/watch?v=12345ABCDE</URL>
</Video>
<Video ID="3">
<Title>Video #3</Title>
<Img>http//www.test.com/Images/Img3.jpg</Img>
<URL>http://www.youtube.com/watch?v=A1B2C3D4E5</URL>
</Video>
<Video ID="4">
<Title>Video #4</Title>
<Img>http//www.test.com/Images/Img4.jpg</Img>
<URL>http://www.youtube.com/watch?v=1A2B3C4D5E</URL>
</Video>
</Videos>
This will have about 20 Videos, but more can be added so I need it to be dynamic in the way it creates the rows and columns. It will be the image as a link to the YouTube page with the title to the right of the image.
For one page I need there to be 3 videos per row:
Video#1 Video#2 Video#3
Video#4
For a different page I need there to be 2 videos per row:
Video#1 Video#2
Video#3 Video#4
For a different page I need there to be 1 video per row:
Video#1
Video#2
Video#3
Video#4
Thank you for any help you can give me