Well I posted this on PHPBuilder.com and someone immediately gave me
the solution, so I thought I'd share (I know how annoying it is when
someone has solved an issue you're working on but doesn't say how!).
It's very simple: put this bit of php within the swfobject alternative
content div, changing 'yourxmlfile.xml' to, well, your xml file!
Don't forget to include the directory if it is in a different
directory from the html page:

<?php
$xml = simplexml_load_file('yourxmlfile.xml');

foreach ($xml->children() as $album) {
    echo '<h2>'.$album[title].'</h2>';
    echo '<ul>';

    foreach ($album->children() as $image) {
        echo '<li>'.$image[title].': '.$image[caption].'</li>';
    }
    echo '</ul>';
}
?>

And finally, don't forget to change the htaccess file to read php
within html.

And that's it!  Simple, hey?  This principle can easily be adapted for
other xml files and not just for use with slideshow pro.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to