Web Technologies - Old Questions

3.  Design DOM for the time table of your classes in the present semester. Save at web server that is local or on the Internet. Later view it using the browser.

10 marks | Asked in 2068

Fig: DOM of Time Table of Current Semester

Above diagram is a DOM implementation of Time table of current semester.

For simplicity, we display only on each day.

Lets write real implementation of DOM in XML file

<?xml version="1.0" encoding="utf-8"?>

<Six_Semester>

 <Day>

 <Sunday>

    <Time1>Compiler</Time1>

    <Time2>Software Engineering

    <Time3>Web Technology</Time3

    <Time4>Statistics</Time4>

    <Time5>Project Lab</Time5

 </Sunday>

 <Monday>

    <Time1>Compiler</Time1>

    <Time2>Software Engineering </Time2>

    <Time3>Web Technology</Time3>

    <Time4>Statistics</Time4>

    <Time5>Project Lab</Time5>

 </Monday>

 <Tuesday>

    <Time1>Compiler</Time1>

    <Time2>Software Engineering</Time2>

    <Time3>Web Technology</Time3>

    <Time4>Statistics</Time4>

    <Time5>Project Lab</Time5>

 </Tuesday>

 <Wednesday>

    <Time1>Compiler</Time1>

    <Time2>Software Engineering</Time2>

    <Time3>Web Technology</Time3>

    <Time4>Statistics</Time4>

    <Time5>Project Lab</Time5>

 </Wednesday>

 <Thursday>

    <Time1>Compiler</Time1>

    <Time2>Software Engineering</Time2>

    <Time3>Web Technology</Time3>

    <Time4>Statistics</Time4>

    <Time5>Project Lab</Time5>

 </Thursday>

 <Friday>

    <Time1>Compiler</Time1>

    <Time2>Software Engineering</Time2>

    <Time3>Web Technology</Time3>

    <Time4>Statistics</Time4>

    <Time5>Project Lab</Time5>

 </Friday>

 </Day>

</Six_Semester>


Let’s save in c: drive by named time_table.xml.

Viewing DOM Document in Browser

Just Type in Browser address bar : file:///C:/time_table.xml