Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Note:

- Please zip all files before submit.


- The zip file name must have format:
Class_Rollnumber_XmlAssignment1.zip
Have a nice work! And keep in mind that don’t cheating!

Problem 1:
Giving the data as following:
Classes
className courseId room time
IS1311 JPD111 AL-R301 Monday Slot 2
MKT1503 ACC101 BE207 Tuesday Slot 6
SE1601 PRF192 AL-L207 Friday Slot 3

Students
studentId name birthday className
HE131280 Nguyen Ngoc Vu 03/07/1999 IS1311
SE31280 Ha Anh Tuan 12/01/2000 MKT1503
HE139270 Dang Van Tuan 21/11/2001 SE1601
HE138471 Nguyen Ha Thuong 08/05/2000 MKT1503
HE139270 Dang Van Tuan 21/11/2001 MKT1503
HE131280 Nguyen Ngoc Vu 03/07/1999 MKT1503
SE31280 Ha Anh Tuan 12/01/2000 IS1311

Courses
courseId name courseType
JPD111 Elementary Japanese 1.1 Language
PRF192 Programming Fundamentals Programming
ACC101 Principles of Accounting Finance

We want to export this data into an XML file. Write a


schema describing the following structure for the XML
file:
- There is one root element called classes
- The classes element contains a sequence of class
sub elements, one for each class in the database
- The class element contains others sub elements
include course, room, time, students
- The course element contain information about the
course will be teach in the class.
- The students contain a list of students in the
class. Each student’s data store in a student element.
- The courseId, className, studentId are attributes.

Note: Add data validation as much as possible

You might also like