Hello… I recently purchased the Photoflow component from Flashloaded and wanted to create a PHP file that dynamically creates an XML to integrate with Photoflow. I found a post called [FONT=Verdana][SIZE=4][COLOR=#003366]Output mySQL data as XML with PHP[/COLOR][/SIZE][/FONT]
[FONT=Verdana][SIZE=1][COLOR=#808080]by Jubba [/COLOR][/SIZE][/FONT]
This looks good, but Photoflow is very particular in how it accepts the XML Code. The final output needs to look like this:
<?xml version=“1.0” encoding=“utf-8”?>
<photos path=“images/”>
<photo name=“photo1” url=“photo1.jpg”>This is photo1</photo>
<photo name=“photo2” url=“photo2.jpg”>This is photo2</photo>
<photo name=“photo3” url=“photo3.jpg”>This is photo3</photo>
<photo name=“photo4” url=“photo4.jpg”>This is photo4</photo>
</photos>
I’ve been modifying the code, but I can’t figure out how to display the attributes in XML like this… any help would be appreciated… thanks!