Use DOM to work with XML
Video: ( Nguồn: Thầy Phạm Anh Đới) Click here
Demo: Click here
Practice: Click here
1. 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.
2. 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.
Không có nhận xét nào:
Đăng nhận xét