Dreamweaver Extensions

Working with XML content

Open the news.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 News Scroller). After that, in the category '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"?> 
<news>
    <item>
        <p class="caption">News 1</p>
        <p class="date">18 Feb 2009</p>
        <p class="content" link="empty.html" target="_blank">Aenean nonummy hendrerit mauris...</p>		
    </item>
    <item>
        <img src="photos/thumb01.jpg" width="75" height="56" align="right" float="true" />		
        <p class="caption">News 2</p>
        <p class="date">19 Feb 2009</p>
        <p class="content" link="empty.html" target="_self">Aenean nonummy hendrerit mauris...</p>
    </item>
</news>            

In this example, parent <news> tag contains two child tags <item> - two news. First news has three text blocks. Second news has three text blocks and a picture. Classes of style from CSS file is using to format the text.

<p class="caption">News 1</p>

Also you can format the text without CSS. To do this, use HTML tags.

<p><![CDATA[<font face="Tahoma" color="#FF0000"><b>News 1</b></font>]]></p>        

Read more information about supported HTML tags and CSS properties.

<news>

Description
Main tag and contains the description of the news scroller.

<item>

Description
The tag of the news content.

<p>

Description
The tag inserts the paragraph into the news content.

Attributes

  • class, The class of style from CSS file. If an undefined atribute class is used for text block, so there is used general text format for text formating. See text parameters in the part 'Text' in tab 'General' in Flashdevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash News Scroller).
  • link, The URL from which to obtain the document.
  • target, Specifies the window or HTML frame into which the document should load. 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.

Optional attributes
The following attributes are optional for tag <p>.

  • margin_top, The top margin of the paragraph, in pixels.
  • margin_bottom, The bottom margin of the paragraph, in pixels.

<img>

Description
The tag inserts the image into the news content.

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://.
  • width, The width of the image, in pixels.
  • height, The height of the image, in pixels.
  • align, A string that specifies how to align the image. Acceptable values are "Left" and "Right".
  • float, A Boolean value that indicates whether the text flows round the image at the left or on the right (true) or not (false).

Optional attributes
The following attributes are optional for tag <img>.

  • margin_left, The left margin of the image, in pixels.
  • margin_right, The right margin of the image, in pixels.
  • margin_top, The top margin of the image, in pixels.
  • margin_bottom, The bottom margin of the image, in pixels.