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.
Exercise 2:
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
Exercise 3:
Draw a tree that represents the XML document you created in task 2.
Exercise 4:
This is the books.xml file
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started