Hi,
I use SlideShowPro. It reads an xml file to dynamically update the flash photo gallery with images and their titles and captions.
For the purposes of SEO, I would like to show a simple list of albums, image titles and captions in the alternative content. Now I could just write this in by hand, but since the whole point of having the xml is to save time when updating the image gallery, it would be good to use a php script to pull this information from the xml file for me. The search engines would also read the resulting content.
Anyway , the xml is like this:
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<album id="chairs" title="Chairs" lgPath="gallery/chairs/lg/"
tnPath="gallery/chairs/tn/">
<img src="01.jpg" title="First Photo Title" caption="This where my photo caption would be<br />and sometimes I would include a line break" />
<img src="02.jpg" title="Second Photo Title" caption="This where your photo caption would be" />
</album>
<album id="tables" title="Tables" lgPath="gallery/tables/lg/"
tnPath="gallery/tables/tn/">
<img src="03.jpg" title="First Table Photo Title" caption="This where your photo caption would be" />
</album>
</gallery>
I would like to display this info in the alternate content section of the html for swfobject as:
<h2>Chairs</h2>
<ul>
<li>First Photo Title: This is where my caption would be<br />
and sometimes I would include a line break</li>
<li>Second Photo Title: This is where your caption would be</li>
</ul>
<h2>Tables</h2>
<ul>
<li>First Table Photo Title: This is where your caption would be</li>
</ul>
etc.....
Any ideas how I could use PHP to get from a to b?
Thanks in advance.