0% found this document useful (0 votes)
9 views

Print PRACTICAL XML EXERCISE

Uploaded by

berhanu Dagne
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Print PRACTICAL XML EXERCISE

Uploaded by

berhanu Dagne
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PRACTICAL XML EXERCISE – GRADE 12

- XML - stands for extensible Markup Language designed to store and transport
data and to organize and structure data.
- XML is a case-sensitive language, has no a Predefine tag and contain one root element.
Exercise 1: Create an XML document representing a bookstore. Include the following information for each
3 book:
- Title
- Author
- Year of publication
- ISBN
- Price
<bookstore>
<book>
<title>Book Title 1</title>
<author>Author 1</author>
<year>2000</year>
<price>19.99</price>
</book>
<book>
<title>Book Title 2</title>
<author>Author 2</author>
<year>2005</year>
<price>24.99</price>
</book>
<book>
<title>Book Title 3</title>
<author>Author 3</author>
<year>2010</year>
<price>14.99</price>
</book>
</bookstore>
Exercise 2: Create an XML document representing customer list. Include the following information for
each 3 customer:
- Name
- Email
- Address (Include street, city, state, and zip code)
Exercise 3: Create an XML document representing a student database. Include the following information
for each 3 student:
- Name
- Student ID
- Major
- GPA
Exercise 4: Create an XML document representing a product catalog. Include the following information
for each 3 product:
- Product ID
- Product Name
- Description
- Price
Exercise 5: Create an XML document representing a company's employee directory. Include the following
information for each 3 employee:
- Name
- Employee ID
- Department
- Position
- Email
Exercise 6: Create an XML document representing a COLLEGE. Include the following information for
each 2 Department:
1. DEPARTMENT1
- Name
- Number (type=”int”)
- course1 (name, number (type=”code”), credit hour (type=”cr_hr”)
- Teacher (tname(type=”teacher”)
- course2 (name, number (type=”code”), credit hour (type=”cr_hr”)
- Teacher (tname(type=”teacher”), tidno(type=”idno”)
2. DEPARTMENT2
- Name
- Number
- course1 (name, number (type=”code”), credit hour (type=”cr_hr”)
- Teacher (tname(type=”teacher”)
- course2 (name, number (type=”code”), credit hour (type=”cr_hr”)

You might also like