Thứ Ba, 5 tháng 8, 2014

Manipulate DOM tree

Create a student list student.xml. Write a program for a teacher to count the
number of students in a class. Create a DOM tree for parsing the student.xml.
Declare countStudents() function recursively count the number of Student
nodes till reaching the last node in the XML document.

- Chạy :

Create an application demonstrating the creation of a DOM tree in memory.
Create an empty DOM document in the memory, which will contain some
information about the employees of an organization. After creating the document
add employee names as element nodes to the document. For each employee add
an attribute node having name as EmployeeID and the corresponding value of
the ID. Finally, print the content of the DOM document.

- Chạy :


Tổng Kết :
- Hiểu rõ hơn về DOM.
- Biết cách làm bài thực hành về DOM.

Không có nhận xét nào:

Đăng nhận xét