Introduction of Jxpath
Jxpath is a Java implementation of the XPath provided by Apache, part of the Jakarta, and the latest version is 1.1,jxpath's main feature is a set of Java class libraries that use XPath to access Java classes that conform to the JavaBeans specification, Java Collections (collections), other objects with dynamic properties (such as map, ServletContext, and so on) provide a set of extension mechanisms that allow us to increase support for other object models outside of these objects.
Note
1. For more on XPath please visit the homepage of the XPath
ASP ">http://www.w3schools.com/xpath/default.asp
2, about Jxpath more content please visit Jxpath's homepage
Http://jakarta.apache.org/commons/jxpath/index.html
Ii. Environmental Preparedness
1, download Jxpath
Jxpath the latest version of the binary code download address is
Http://apache.linuxforum.net/dist/jakarta/commons/jxpath/binaries/commons-jxpath-1.1.zip
2. Download Eclipse
Using Eclipse as a development tool, the author invites you to http://www.eclipse.org/to download the latest version of Eclipse.
3. Download Tomcat
The author uses Tomcat as a web container to demonstrate how to use Jxpath to access objects in ServletContext, please go to jakarta.apache.org to download the latest version of Tomcat.
The following sections show a detailed example of how to use Jxpath to access a wide variety of objects, while demonstrating how to create objects, modify properties of objects, and so on by Jxpath.