| Sample
XML configuration file of a Flash Photography Template
<photogallery defaultfolder="0">
<music>music.mp3</music>
<txt id="1">
<![CDATA[My
Photo Gallery (PA006)]]>
</txt>
<folder>
<item id="1"
pid="0">
<txt
id="1">
<![CDATA[Gallery
1 ]]>
</txt>
</item>
.....
</folder>
<photo>
<item fid="1">
<src id="1"
w="100"
h="75">thumbs/tn_baseball.jpg</src>
<src id="2"
w="1600"
h="1200">images/baseball.jpg</src>
<txt
id="1">
<![CDATA[baseball.jpg]]>
</txt>
<txt
id="2">
<![CDATA[BaseBall]]>
</txt>
</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.
<-- src tag
of id="1" contains size
and path of the thumbnail
<-- src tag
of id="2" contains size
and path of the image
<-- txt tag
of id="1" contains information
of the thumbnail
<-- CDATA
in tag sets description text of the
thumbnail
<-- Close the txt
tag
<-- txt tag
of id="2" contains information
of the full size photo
<-- CDATA
in tag sets description text of the
full size photo
<-- Close the txt
tag
<-- Close the item
tag
<-- Close the photo
tag
<-- Close the photogallery
tag
|