November 2002
Intermediate to advanced
1120 pages
21h 2m
English
Although there are many different kinds of XPath expressions, the one that's of primary use in Java programs is the location path. A location path selects a set of nodes from an XML document. Each location path is composed of one or more location steps. Each location step has an axis, a node test and, optionally, one or more predicates. Furthermore, each location step is evaluated with respect to a particular context node. A double colon (::) separates the axis from the node test, and each predicate is enclosed in square brackets.
Some examples will help explain these terms. Consider the simple XML-RPC request document in Example 16.3.
The Differences between the XPath and DOM Data ModelsThe XPath data model is similar to the ... |
Read now
Unlock full access