Csc 8711, Databases and the Web - Project 3
Due: Sunday, March 10thIndividual 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:- schema1.xml, instance11.xml, instance12.xml.
- schema2.xml, instance21.xml, instance22.xml, instance23.xml.
- schema3.xml, instance31.xml.
- Write an XML Schema specification for the composite attribute schema documents.
- 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??)