AFComponents.com

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


Complete XML script needed:


<content>
    <video>
        <path><![CDATA[your_video.flv]]></path>
        <title><![CDATA[Title]]></title>
    </video>
</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 video that you wish to add you will define its flv's path, a title of the item . The following is an example of an video sample. You will repeat this step for each item that you wish to load.

<path><![CDATA[your_video.flv]]></path>
<title><![CDATA[Title]]></title>


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

</content>
Other Tutorials


© 2005-2007 advanced flash components