CSC513 Program Assignment 2
XML Validation
update |
description |
DOMEcho |
deliverable |
reference
Update
- Feb 11, 2008 TYPO: It should be publish date, instead of publish data in the XML representation.
Description
For this assignment, you will be defining the XML schema for an XML
representation of timeslot events. You will have to design your own
XML representation, as well as the XML schema of your representation.
- The XML representation should contain title, description, publish date, and many timeslot events.
- Each timeslot event should contain event id, event name, description, start time, end time, many participants, and location.
- Each participant should contain name and email address.
DOMEcho
Before submitting your files, you should use DOMEcho validator to validate your XML and schema.
Since different validators might have slightly different behaviors, please make sure your XML and schema can work using DOMEcho validator.
We will need Java to execute DOMEcho.
javac DOMEcho.java
java DOMEcho -xsdss unity-id.xsd unity-id.xml
Deliverable
- Submit a UML class diagram or Entity-Relationship diagram for your XML representation.
- Submit an XML schema (use unity ID as filename, say, chang.xsd).
- Submit an example XML file that instantiates the schema, i.e., chang.xml (use unity ID as filename).
Reference
Last Update: Feb 11, 2008
Chung-Wei Hang (chang@ncsu.edu)