Module 2: Well Formed XML Assignment 2 – XML

Module 2: Well Formed XML Assignment 2 – XML

Part I
This exercise is to get you all warmed up in XML and get you all familiarized with the syntax of XML.
Superstar Movies
Audrey Wu is the Web manager for the Superstar Movies video store. She wants to highlight videos of movies that have been honored with Academy Awards (“Oscars”), and she has created a text file (see attached for oscar.txt) containing all of the relevant data. She would like your help in converting this file to an XML document and in displaying the information in a Web page.
The oscars.xml file should contain the following items:
 The root element of the document should be named Movies. The Movies element should contain multiple occurrences of a child element named Movie, each of which specifies a single movie.
 Each Movie element should have child elements named Title, Year, and Length, as well as one or more occurrences of a child element named Award that describe the Oscars associated with the movie.
 Movie element should also have a single attribute named “genre” specifying the genre of the movie (e.g., drama or comedy).
 The Title element should store the title of the movie
 Year element should specify the year in which the movie was released. You should keep the left and right parentheses found in the values specified for this element in the original data file.
 Length element should specify the length of the movie in minutes. You should include the word “minutes” in the values for this element.
 Award element should contain one or two child elements. All Award elements should have a child element named Type that stores the type of Oscar (e.g., Best Actor or Best Picture). Award elements for awards that are associated with one or more people should also have a child element named Winner that specifies the winner or winners of the award. Award elements for Best Picture or Best Foreign Language Film will not have a Winner element.
 Make sure to replace special characters like apostrophes (single quotes) and ampersands with the appropriate character reference or entity reference.
Note: This XML will be used later in other assignments this semester. So it is important that you design your XML well. However, do note that there are multiple flavors of solutions for this assignment and it will be discussed after grading

Part II
As discussed in the lecture (Jazz example), there is a document that contains a list of hard-to-find recordings that a music store recently acquired. The figure below shows the structure of the document you have to convert to XML.

Part III
catalistRadio is a flash based radio application that plays your favorite songs. The songs are loaded from an XML file. You need to design an radio.xml with the following requirements:
 The parent tag is radio
 One or more child tag called station and station has an attribute name (rock, rap, pop etc)
 station has one or many child tag called song.
 song has 3 children (title, composer, file)
 file will contain the location of the actual audio file (mp3 format).
 Finally, make sure you have 3 categories (name) and each category has at least 3 songs.
Save the radio.xml in the same folder where you have the radio.html and the flash file (see attached radio.zip file). When you load the the radio.html, you should see a screen shot as shown below and you must be able to play your songs (assuming you have the actual audio file).

 

Is this the question you were looking for? If so, place your order here to get started!