Apply XQuery
Module :
Read all username in file tomcat-users.xml
Before getting started , we need to import th followsing jar file into library
Tomcat-users file
Main class
Create an instance of class Document from tomcat-users.xml file
Use XQueryUtil to get all node named user from object doc.
Use loop method to print out all node List and transfer each item into xml form
Result: All user were displayed
Không có nhận xét nào:
Đăng nhận xét