Dreamweaver Extensions

Working with XML content

Open the header.xml file in Dreamweaver (File -> Open), to change the content of your header. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Snowfall Header with Menu). 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"?> 
<header>
   <slides>
      <img src="photos/photo1.jpg" title="Title 1" />
      <img src="photos/photo2.jpg" title="Title 2" />
      <img src="photos/photo3.jpg" title="Title 3" />
      <img src="photos/photo4.jpg" title="Title 4" />
   </slides>
   <top>
      <item caption="Root item 1">
         <item caption="Sub item 1-1" link="empty.html" />
         <item caption="Sub item 1-2" link="empty.html" />
         <item caption="Sub item 1-3" link="empty.html" />
      </item>
   </top>
   <bottom>
      <item caption="Root item 1>
         <item caption="Sub item 1-1" link="empty.html" target="_self" />
         <item caption="Sub item 1-2" link="empty.html" target="_self" />
      </item>
      <item caption="Root item 2" link="empty.html" target="_blank" />
   </bottom>
</header>

Headline, tag <header>, contains three child tags <slides>, <top> and <bottom>. In this example, header contains 4 slides, top and bottom menu. Menu item 'Root item 1' at top and bottom menu have submenus. In bottom menu item 'Root item 2' hasn't submenu.

<header>

Description
Main tag and contains the structure of the header.

<slides>

Description
Contains the slides. If you use 'Snowfall Header with Menu' just as a menu, so you can delete this tag.

<img>

Description
Contains the path to the image file and title of this image.

Attributes

  • src, 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://.
  • title, The title of the image.

<top>

Description
Describes the structure of the top navigation menu. This tag is necessary, if you use top menu. See parameter 'Visible' in tab 'Top menu' in Flashdevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Snowfall Header with Menu).

<bottom>

Description
Describes the structure of the bottom navigation menu. This tag is necessary, if you use bottom menu. See parameter 'Visible' in tab 'Bottom menu' in Flashdevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Snowfall Header with Menu).

<item>

Description
Contains the menu item.

Attributes

  • caption, The caption of the menu item.
  • link, The URL from which you can 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.