Wrote a function today to parse an XML file to create an image gallery table:
http://sim0n.net46.net/files/Image%20Gallery.php
The XML files structure is set up like this, similar to that of an RSS feed:
<?xml version="1.0" encoding="iso-8859-1"?> <channel> <thumb></thumb> <name>sim0n Gallery RSS</name> <date></date> <description>sim0n Gallery RSS</description> <link>https://sim0n.wordpress.com</link> <item> <thumb>Clouds_thm.jpg</thumb> <name>Clouds - Seamless 1 Tile</name> <date>12 April 2009</date> <description><![CDATA[A 1-image seamless tile that can be used as a repeating texture or background]]></description> <link>Clouds.html</link> </item> <item> <thumb>Meadow_thm.jpg</thumb> <name>Meadow - Seamless 2 Tile</name> <date>12 April 2009</date> <description><![CDATA[A 2-image seamless tile that can be used as a repeating texture or background]]></description> <link>Meadow.html</link> </item> </channel>
It turned out quite nicely, now all i need to do is implement an easy way for me to add items to the gallery, shouldn’t be too hard.