Chapter 9. Traversing Hierarchical Data with JXPath

Chapter 8 presented BeanUtils, a toolkit that offers a very Java-like syntax for traversing trees of Java objects. There is a similar but more powerful expression language that was developed to traverse XML called XPath. XPath was developed by the World Wide Web consortium and is not intrinsically tied to Java. JXPath is a Java implementation of this specification that is capable of applying the power of XPath to XML and other kinds of hierarchical data.

This chapter assumes some familiarity with XML. Readers who are not yet acquainted with XML can start with some of the suggestions for further reading listed at the end of this chapter.

Introduction to XPath

To facilitate the study of XPath it will ...

Get Apache Jakarta and Beyond: A Java Programmer’s Introduction now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.