Dreamweaver Extensions

Working with XML content

Open the playlist.xml file in Dreamweaver (File -> Open), to change the content of your gallery. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash Video Player). After that, in the category of 'General', click the 'Edit' button near the 'Source' field.

The following example shows the basic structure of the content XML file:

<?xml version="1.0" encoding="utf-8"?> 
<playlist>
   <item src="videos/video01.flv" thumb="thumbs/thumb01.jpg" time="01:10" caption="Caption 1" />
   <item src="videos/video02.flv" thumb="thumbs/thumb02.jpg" time="01:20" caption="Caption 2" />
   <item src="videos/video03.flv" thumb="thumbs/thumb03.jpg" time="01:30" caption="Caption 3" />
   <item src="videos/video04.flv" thumb="thumbs/thumb04.jpg" caption="Caption 4" />
   <item src="videos/video05.flv" thumb="thumbs/thumb05.jpg" caption="Caption 5" />
</playlist>            

In this example, parent <gallery> tag contains five child tags <item>. Each of them has its own caption. First, second and third item has also 'time' attribute.

<playlist>

Description
Main tag and contains the description of the video gallery.

<item>

Description
Contains the path to the files and descriptions of the video content.

Attributes

  • src, The absolute or relative URL of the video file to be used. A relative path must be relative to the HTML file. Absolute URLs must include the protocol reference, such as http://.
  • thumb, The absolute or relative URL of the image file to be used as thumbnail. A relative path must be relative to the HTML file. Absolute URLs must include the protocol reference, such as http://.
  • caption, The caption of the video (photo) content.
  • time, The time length of the video. This attribute is not obligatory. You can replace it (numbers) with any other text information.