Unit 6 Programming Assignment cs2205
Unit 6 Programming Assignment cs2205
element is <exercises>.
The root has an attribute number that has value 1. The root element has three child
elements; <date> that contains as text the date of the exercise, and two <item> elements for
the first two exercises (1--2). Write some text in the <item> elements.
<exercise>
<date>07-08-2022</date>
<item2>Practice XML</item2>
</exercise>
<person>
<name>
<firstname>Rubwa</firstname>
<lastname>Wimbwa</lastname>
</name>
<occupation>Driver</occupation>
<address>
<street1>4567 Street</street1>
<street2>Tuta Stari</street2>
<suburb>Katutu</suburb>
<city>Kinshasa</city>
<province>Bukavu</province>
<country>D.R.C</country>
</address>
<hobbies>
<hobby>playing</hobby>
<hobby>watching movies</hobby>
<hobby>Coding</hobby>
</hobbies>
</person>
Exercise 3: Draw a tree that represents the XML document you created in task 2.
Person
EXERCISE 4:
<programofstudy>
<class>
<goal> 8 </goal>
<course2>ECON 201</course2>
<goal> 11 </goal>
</class>
</major>
</program>