Forum Moderators: coopster
<gallery>
<album id="3" title="mainpage" description="Zeek's Creek." lgPath="http://site.com" tnPath="" tn="http://site.com/" startHere="">
<img src="zekes creek.jpg" caption="" link="zekes creek.jpg"/>
</album>
</gallery>
so that i can return just the value of the album description via php under the picture? or is this xml file actually not considered a true xml file based on the multiple attributes? thank you!
-bessington
i've found a routine to convert an XML file into a PHP structure. I am not sure once it parses the file how to grab the instances of the structure i need.. a variable called $obj->xml, contains the php structure. Here is an example of what it prints out:
stdClass Object ( [GALLERY] => stdClass Object ( [data] => [ALBUM] => Array ( [0] => stdClass Object ( [attr] => Array ( [ID] => 1 [TITLE] => Studio Paintings [DESCRIPTION] => Studio Paintings by Mark Fernandez.
How do I from this point, just grb the Description array as a value and then just print that out? Thank you - and help is greatly appreciated!