Thứ Ba, 29 tháng 7, 2014

Working with SAX

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.



- Chay:

II. Demo 2 :
- 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 search
in 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