coachtim23
November 20th, 2007, 05:43 PM
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 Output mySQL data as XML with PHP
by Jubba
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!
by Jubba
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!