Dreamweaver Extensions

Working with XML content

Open the content.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 Accordion). 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"?> 
<gallery>	
    <item image="photos/photo01.jpg" caption="Caption 01" link="empty.html" target="_blank" description="Description 01" />
    <item image="photos/photo02.jpg" caption="Caption 02" link="empty.html" target="_blank" description="Description 02" />
    <item image="photos/photo03.jpg" caption="Caption 03" link="empty.html" target="_blank" description="Description 03" />
    <item image="photos/photo04.jpg" caption="Caption 04" link="empty.html" target="_blank" description="Description 04" />
</gallery> 

In this example, parent <gallery> tag contains 4 child tags <item>. All the items have some description. Also to each item you can attach a hyperlink .

<gallery>

Description
Main tag and contains the description of the component.

<item>

Description
Contains the path to the image file, caption, description and hyperlink.

Attributes

  • image, The absolute or relative URL of the image file. 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 item.
  • description, The description of the item.
  • link, The URL from which to obtain the document.
  • target, Specifies the window or HTML frame into which the document should be loaded. You can enter the name of a specific window or select from the following reserved target names:
    • _self specifies the current frame in the current window.
    • _blank specifies a new window.
    • _parent specifies the parent of the current frame.
    • _top specifies the top-level frame in the current window.