You are on page 1of 4

In Academic Affiliation with California State University – Northridge

Department of Information Technology


Assignment 1
Second Semester 2021-’22
Course Code : COMP324
Course Name : XML Programming
Course Instructor : Dr. Sohail Iqbal
Due Day : Tuesday
Due Date : 10/May/2022
Assessment tool : Assignment 1
Student Name : ……………………………..……………………
I.D. Number : ……………………………..……………………
Section : ……………1………………..…………………

Marks Obtained Maximum


Question No. Comments if any
O1 O2 O3 O4 O5 O6 Marks
3 2 3 2
Task 1 /3 /3
Task 2 /2 /2
Task 3 /3 /3
Task 4 /2 /2

Outcomes Total /10

Total Marks(in figures) Total Marks(in words)


Evaluator’s Signature
Internal Moderator’s External Moderator’s
Signature Signature

Remark: Candidates are advised to read all instructions before answering.


Objectives: The following student learning outcomes of the course are in this continuous
assessment tool:

O2. Describe the XML syntax and language rules.


O3. Validate XML documents by using DTD and schema.

O4. Format the XML file by using Cascade style sheets

O5. Transform the XML file by using XSLT and Xpath

The assignment covers the following graduate attributes:

 Critical Thinking
 Problem Solving

Description of the Tool:

In this assignment, a tree structure diagram which contains information about Exam is given to
you. You are required to complete tasks 1 to 4 which mainly focuses on XML, DTD, XSL and
XPath.

TASK 1:

Convert the following tree structure diagram into Exam.xml program: [O2] [3 Marks]

Exam

Subject

Subj_Code Subj _Name Exam_Day Teacher_Name Room

Attribute Attribute
Date Dept

TASK 2:

Write the external DTD to verify the Exam.xml program (Created in task 1) [O3] [2
Marks]

Page 2 of 4
TASK 3:

Write the XSL program to show the following output for Exam.xml (Created in task 1).
[O4] [3 Marks]

MidTerm Exam Timetable

Subj_code subj_Name Exam_Day Teacher_Name Room


0301350 E-Commerce Sunday Mr. Sohail 405

Date = “12 Dec 2022” Dept= ”IT”


0101004 Study Skills Tuesday Mr. Salah 214

Date = “17 Dec 2022” Dept= ”English”


0312306 Operations Monday Dr samer 307
Management
Date = “23 Dec 2022” Dept= ”Business”

TASK 4:

Write the XPath expressions to compute the following: [O5] [0.5*4=2 Marks]

 Select all the subject name


 Select the Subj_code of first subject
 Select all the Exam_Day elements that have an attribute value ’23 Dec 2011’
 Select subj_Name elements where Room = 214

Submission Date (s): Tuesday (10/May/2022).

Assessment Weighting: 10 Marks

WHAT TO SUBMIT

You are required to submit a PDF file of your assignment through Moodle which contains the
solution of tasks 1 to 4.

Page 3 of 4
Assessment Criteria:

Marks Assessment Criteria No.

Task 1: Exam.xml 1
 Adherence with elements name
 Adding appropriate data
 Successfully showing well formedness
/3
Task 2: 2
/2 External DTD

Task 3: 3
XSL program
/3
Task 4: 4
XPath expressions
/2
/10 Total Marks

End of document

Page 4 of 4

You might also like