Dreamweaver Extensions

Working with XML content

Open the news.xml file in Dreamweaver (File -> Open), to change the content of your menu. Also, you can open the XML content file through FlashDevelopment24 Wizard (Right click on Flash Object, then FlashDevlopment24 Wizard -> Flash News Line). After that, in the category of 'General', click the 'Edit' button near the 'Menu source' field.

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

<?xml version="1.0" encoding="utf-8"?> 
<news>
  <item caption="Caption 1" link="empty.html" target="_blank">
    <content>
      <![CDATA[
        <p underline="true"><font face="Tahoma" size="11" color="#A0A0A0">Content</font></p>
      ]]>
    </content>
  </item>
  <item caption="Caption 2" link="empty.html" target="_blank">
    <content>
      <![CDATA[
        <p><font face="Tahoma" size="11" color="#F0F0F0"><b>Title</b></font></p>
        <p underline="true"><font face="Tahoma" size="11" color="#A0A0A0">Content</font></p>
      ]]>
    </content>
  </item>
  <item caption="Caption 3" link="empty.html" target="_blank">
    <img src="thumbs/thumb01.jpg" />
    <content>
      <![CDATA[
        <p><font face="Tahoma" size="11" color="#F0F0F0"><b>Title</b></font></p>
        <p underline="true"><font face="Tahoma" size="11" color="#A0A0A0">Content</font></p>
      ]]>
    </content>
  </item>
</news>

In this example, parent <news> tag contains three child tags <item>. First item has one line (paragraph)of the text in a <content> tag. Second item has two lines (paragraphs)of the text in a <content> tag. Third item has two lines (paragraphs)of the text in a <content> tag and an image source (thumbnail).

<news>

Description
Main tag and contains the structure of the news.

<item>

Description
The tag of the news content.

Attributes

  • caption, The caption of the news.
  • link, The URL from which you can obtain the document. This parameter assigns a hyperlink to the item.
  • 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

<img>

Description
Contains the path to the image. This tag are optional.

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://.

<content>

Description
Contains the news content.

Content used a special symbols <![CDATA[...]]>. Each content consists of paragraphs <p>. The text of a paragraph can be edited with the help of HTML tag <font>. Besides a default tag attribute align for the tag <p> there is available additional optional attributes:

  • underline, if you use this parameter, the paragraph will be underlined (true) or vice versa - will not be underlined (false).
  • margin_bottom, The bottom margin of the paragraph, in pixels.