AFComponents.com

Adding Content:Using XML
Updated: Apr 22, 2008   Views: 1956  
Description: This tutorial we will go through the steps needed to add content using XML file.


Complete XML script needed:


<content>
    <image>
        <path><![CDATA[your_video.flv]]></path>
        <description><![CDATA[Title]]></description>
        <link><![CDATA[url.com]]></link>
    </image>
</content>


Creating the XML Document

To begin, create your xml file using Dreamweaver or a text editor, saving the file with a .xml extension. With a blank document open, create the content tag to start the document:

<content>


Now for each of the image that you wish to add you will define its  path, a description of the item, and a link if you would like to hyperlink the images. The following is an example of an image sample. You will repeat this step for each item that you wish to load.

<path><![CDATA[your_video.flv]]></path>
<description><![CDATA[Title]]></description>
<link><![CDATA[url.com]]></link>


When you have repeated the above for all items, close the content tag to finish the document:

</content>


© 2005-2007 advanced flash components