| Sample
XML configuration file of a Flash Photography Template
<photogallery>
<music>music.mp3</music>
<txt id="1"><![CDATA[PhotoAlbum
(PA001)]]></txt>
<folder>
<item
id="1" pid="0">
<txt
id="1"><![CDATA[Plants
and Pets]]></txt>
</item>
...
</folder>
<photo>
<item fid="1">
<txt id="1"><![CDATA[Description
Text]]></txt>
<src id="1" w="120"
h="75">thumbs/plant1.jpg</src>
<src id="2" w="500"
h="310">images/plant1.jpg</src>
</item>
...
</photo>
</photogallery>
|
Explanation
<-- Open the photoalbum
tag
<-- Set background
music here
<-- CDATA
in tag txt of id="1"
sets the title of album
<-- Open the folder
tag to define categories
<-- Each item
tag represents a category. set the id to
1, 2, 3, etc.
<-- CDATA
in tag txt sets the category
name
<-- Close the item
tag
<-- Close the folder
tag
<-- Open the photo
tag to define photos
<-- Each item
tag represents a photo. Set fid to
item id of a folder
tag.
<-- CDATA
in tag txt sets description
text of the photo
<-- src tag
of id="1" contains size
and path of the thumbnail
<-- src tag
of id="2" contains size
and path of the full size photo
<-- Close the item
tag
<-- Close the photo
tag
<-- Close the photogallery
tag
|