Csc 8711, Databases and the Web - Project 3

Due: Sunday, March 10th
Individual Assignment.

XML Parsing

Consider the concept of a complex attribute in the Entity-Relationship data model. A brief definition and explanation is given here. We will consider an XML coding of complex attributes shown in the following examples:
  1. Write an XML Schema specification for the composite attribute schema documents.
  2. Write a Java program (application) that use a DOM parser to validate a composite attribute instance document against a composite attribute schema document. You should accept the xml files as command line arguments as shown below:
    $java CAValidator schema3.xml instance32.xml
    instance32 conforms to schema in schema3
    or
    instance32 does not conform to schema in schema3
    (error message??)