ICT336 title
Murdoch University logo

Laboratory Week 7a - XML Schema


Learning Objectives:

  1. Learn how to create XML Schemas.
  2. Learn how to verify that an XML document is valid according to Schemas.

Required Reading:

Lectures: Week 6 lecture 1.
Sybex Textbook XML Complete Chapters 7 and 8.

Access to Software:

The following exercises requires a browser on your local machine, as well as secure FTP access to gryphon.murdoch.edu.au.

Access to required files:

The following exercises make use of files available in the unit coordinator's directory (~hiew/examples/schema/) on gryphon. Use the command "cp" to copy the file over to your work directory on gryphon. Eg.

gryphon:~> mkdir ~/labwk7
gryphon:~> cp ~hiew/examples/schema/* ~/labwk7

Then use your secure FTP client to download all the files to your local machine.

Instructions:

  1. Use a text editor to view the files course-invalidxsd.xml and its corresponding schema course.xsd on your local machine.
  2. Check whether the XML document is valid according to its Schema by using the Online W3C XML Schema Validator (http://apps.gotdotnet.com/xmltools/xsdvalidator/). Load the XML and XSD file as instructed by the form on the validator's page, and click "Submit". You do not need to specify the NamespaceURI.

    Using the errors messages generated, correct the mistake(s) in course-invalidxsd.xml. Save the corrected file as course-validxsd.xml. Try checking the document again with the validator to confirm you have made the right corrections.

Exercises:

  1. Using a text editor, add all of the following information on a unit into course-validxsd.xml file. You must determine the appropriate elements to put them into. Modify the Schema if you have to.

    Unit name: ICT333 IT Project
    Lecturer's name: Arnold Depickere
    Semester: 1

  2. Add to your course-validxsd.xml document.some of the extra information available on ICT336 official front page http://online.murdoch.edu.au/public/ICT336/.
  3. Look at the University Handbook entry for BSc in Internet Computing at Murdoch University. Think about how all the relevant information may be added to the course-validxsd.xml document (since it will be a very cumbersome process, you do not need to actually do it).

Assessable Tasks:

Exercise 1.

Internal students should demonstrate to your tutor by executing your scripts with your tutor present. This must be done in week 7, 8 or 9. No marks will be awarded if the work is demonstrated after that - your tutor have no discretionary power on this deadline.

External students should submit the scripts and sample runs during the deadline as indicated in the Study Schedule.

H.L. Hiew
Unit Coordinator


Document author: H.L. Hiew, Unit Coordinator
Last Modified: Wednesday, 12-May-2004 16:56:41 MST
Disclaimer & Copyright Notice © 2004 Murdoch University
This document is relevant for semester 1, 2004 only