Module 9 :
In an organization, five hundred employees are working. Out of which some are apprentices. The Delivery Unit Head of that organization gave you the responsibility to develop a software, with which you can find the details of apprentices. Use the below files to develop the application:
1. The EmployeeDatabase.xml file holds the data of all employees.
2. Use XPath expressions.
In this application, the apprentices are defined in the trainee namespace while all other employees are defined in the default namespace. This application should count the number of apprentices and print their details on the user console.
B1:Tao moi java application
1. The EmployeeDatabase.xml file holds the data of all employees.
2. Use XPath expressions.
In this application, the apprentices are defined in the trainee namespace while all other employees are defined in the default namespace. This application should count the number of apprentices and print their details on the user console.
B1:Tao moi java application
B2:Tao file employee.xml có nội dung như sau,ở đây ta có namspace để sử dụng bên hàm main
B3: Triển khai code cho hàm main,dùng namespaceContext và triển khai các phương thức override
Kết quả: ta tính được tổng số bản ghi
Nhận xét:
-Xpath có vai trò rất quan trọng trong quá trình trao đổi thông tin, dữ liệu
-Xpath cho phép ta chọn lựa những thông tin, dữ liệu nào mà ta muốn chuyển
Không có nhận xét nào:
Đăng nhận xét