Using Jxpath to access Java objects, collections, and XML files

Source: Internet
Author: User
Tags xpath tomcat

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.