Question: Exercise 1: Write an XML document describing the exercises in this document: the root element is . The root has an attribute number that has

Exercise 1:

Write an XML document describing the exercises in this document: the root element is . The root has an attribute number that has value 1. The root element has three child elements; that contains as text the date of the exercise, and two elements for the first two exercises (1--2). Write some text in the elements.

Part B:

Write an XML document describing a person: name, occupation, address and hobbies. Please do not use your own information, you can use fake data. Decide on suitable element names and nesting. Check your document for well-formedness. Answer:

OskariHeinonen assistant

Univ. of Helsinki, Dept. of Computer Science P.O. Box 68Gustaf Hllstrmin katu 2b FI-00014University of Helsinki

eatingsleeping

Part C:

Draw a tree that represents the XML document you created in task 2.

Part D:

This is the books.xml file

The Autobiography of Benjamin Franklin

Benjamin Franklin

8.99

The Confidence Man

Herman Melville

11.99

The Gorgias

Plato

9.99

Using books.xml as a model, create a small xml file for a student's program of study form called programOfStudy.xml. It should capture the following data:

In the Fall 2008 semester the student plans to take two classes to satisfy her General Education requirements, PHIL 101 to satisfy Goal 8 and ECON 201 to satisfy Goal 11. She also has to take one core course, MGT 217, and two major courses, CIS 120 and CIS 403.

In the Spring 2009 semester she plans to take two additional core courses, MGT 261 and MKTG 325, as well as three major courses, CIS 220, CIS 407, and CIS 490.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!