Tags

Activity Industry Sector
Arts, Media & Entertainment

Activity Originally Created By: Courtney Curtis

Overview

Part of Lesson Plan: Flash Apps: Building an Embeddable Sound Player Part 3 of 5

Activity Overview / Details

Overview

Teacher explains

"Today, we are going to edit our XML playlist file with the information that we need to run our player. Our XML file will have the details of our songs, specifically:

  • The URL of the song file.
  • The title of the song.
  • The name of the artist singing the song.

These will translate into the XML code shown below:"

<?xml version="1.0" encoding="utf-8"?>
<PLAYLIST>
<SONG URL="audio/track1.mp3" TITLE="First Track" ARTIST="John Doe" />
<SONG URL="audio/track2.mp3" TITLE="Second Track" ARTIST="Random Singer"/>
<SONG URL="audio/track3.mp3" TITLE="Third Track" ARTIST="Super Generic Singer" />
</PLAYLIST>

But first, lets disscuss what XML really is...