Need help with XML data to populate tables

Hey everyone.

I have some experience with PHP and can easily modify existing code, but seem to have trouble writing the logic from scratch.


I’m using this Jquery slider ( Slideshow using javascript and jQuery 1.4 | Mils in a Nutshell ) and would like to populate the slides with data coming from an XML file. The data will be text, images(URIs), and links to buy. The thing is, each slide will hold 4 items, and then I want to somehow using PHP logic, allow the code to generate the next slide…

In other words, how would I code it so that after 4 entries, it creates a new slide?

I’m imagining a For loop + SimpleXML functions… but just kind of fumbling in the dark here.

Any direction or guidance is greatly appreciated!

Kind regards,