I. Demo 1 :
- Create a program to accept the tomcat-users.xml file as a command line
parameter and count the number of users defined in this configuration file. At the
end of processing, it requires to print the number of users on the console.
parameter and count the number of users defined in this configuration file. At the
end of processing, it requires to print the number of users on the console.
- Chay:
- Create the student.xml file that stores a list of registered students. Write a
program for printing the name and ID of all registered students provided in
student.xml.
Make necessary arrangements to accept a command line parameter from the
user to specify the name of the XML document that holds the list of registered
students.
- Chay :
III. Demo 3 :
- Write a program which demonstrates the use of SAX parser for a simple searchin XML document. The program searches a specified user in the tomcat-
users.xml file and prints an the role of the given user on search completion.
This program should include two command-line parameters. The first parameter
specifies the tomcat-users.xml file and the second parameter specifies the user
name to search in the configuration file.
- Chay :
Không có nhận xét nào:
Đăng nhận xét