XML - Managing Data Exchange/A single entity/Answers

Single-Entity CHAPTER => A Single Entity

Single-Entity EXERCISES => Exercises

=Class Example - Wine Store=

XML Schema
name the schema file wine.xsd

XML Stylesheet
=Exercise 1=
 * 1) A museum problem
 * a. Create an XML schema to describe a museum entity that has the following attributes: museum name, date established, address and URL.  Check that it is well-formed and valid.
 * b. Using the schema, create an XML document and populate it with data for two museums. Check that it is well-formed and valid.
 * c. Write an XML stylesheet to display the name of the museum, date established and the URL. Check that it is well-formed and valid.
 * d. Write a Java program to parse the XML document and list each museum and its address.

Answer= 1a. Submitted by Madeleine on February 3, 2004, 5:48 PM

XML Schema
1b. Submitted by Madeleine on February 3, 2004, 5:48 PM

XML Document
1c. Submitted by Madeleine on February 3, 2004, 5:48 PM

XML Stylesheet
= Exercise 2= Solution to Nr. 2:



=Exercise 3= Submitted by Chris Collins on March 28, 2005

XML Schema
--Exercise 3a.--

XML Document
--Exercise 3b.--

XML Stylesheet
--Exercise 3c.--

Single-Entity CHAPTER => A Single Entity

Single-Entity EXERCISES => Exercises