ICT-4540 Homework 3b

Purpose

This exercise provides the opportunity to explore XML Schema definitions. You will learn about its types and what kinds of structure you can compel in valid documents.

What to Hand In

Hand in an updated USPresidents.xml document for your president.xsd XML Schema.
Hand in your president.xsd XML Schema.
Also, hand in a screenshot confirming that your document was successfully validated.

Problems

  1. Validating the Presidents with an XML schema
    1. Create the file president.xsd and create the elements (and attributes, if any) to represent the content of the file.
      Your XSD should represent both the content types, order, and required or optional nature of the elements and attributes. That is, not everything should be xs:string type; dates should be dates and numbers should be the right kind of numbers.
      You may select either a flat schema or a Russian Doll schema -- and you must document in your header comment which of these you selected.
    2. For this part, use restricted sets where applicable, and particularly, use and convert to the standard date format. This will require rewriting the values of these fields in the XML document to validate.
    3. Add the schema reference to the XML file to associate the xsd with the XML document.
    4. Validate the document against the schema, saving a screenshot of your successful result.

Notes

Evaluation

Criteria Weight
Creation of president.xsd XML schema 60%
Updated USPresidents.xml file which associates president.xsd schema 30%
Evidence of successful validation of the XML file with the schema 10%