# XML PHP and Photoflow Integration

**URL:** <https://forum.kirupa.com/t/xml-php-and-photoflow-integration/244690>\
**Category:** programming\
**Created:** [November 20, 2007, 10:43pm UTC](https://forum.kirupa.com/t/xml-php-and-photoflow-integration/244690 "2007-11-20T22:43:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coachtim23](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@coachtim23](https://forum.kirupa.com/u/coachtim23)\
**Post date:** [November 20, 2007, 10:43pm UTC](https://forum.kirupa.com/t/xml-php-and-photoflow-integration/244690/1 "2007-11-20T22:43:22Z")

</div>

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!
