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.