activity 14.2 XML

Description: 

Now it's time to create your own XML file, where you make up your own descriptive elements! Here's an example of an XML document describing a school class:

<?xmlversion="1.0"?>

<class>

<facilitator>Susan Smith</facilitator>

<location>B105</location>

<students>

<studenttype="fulltime">

<lastname>Gold</lastname>

<firstname>Rose</firstname>

<dob>

<year>1980</year>

<month>3</month>

<day>1</day>

</dob>

</student>

<studenttype="parttime">

<lastname>Weatherboard</lastname>

<firstname>James</firstname>

<dob>25/5/1980</dob>

</student>

</students>

</class>

Your challenge is to create an XML file to describe the relevant information from one of the following:

  • A CD album
  • A DVD library (just inlude the info from 2 or 3 DVD's)
  • A product catelogue from a shop of your choice. (again, just include the info from 2 or 3 products)
  • Something of your own choice (check with your facilitator)

The key problem that you will face is deciding the best way to structure your XML file (as there will be many ways you can do it!) When you've finished, it will be very helpful to get together with others and discuss your decisions.