|
Home > Online Product Documentation > Table of Contents > Queries That Return More Than You Want Queries That Return More Than You WantSuppose you want the titles of all the books. You might decide to define your query like this:
This query does return all titles of books, but it also returns the title of a magazine. This query instructs the XPath processor to start at the root node, search all descendants, and return all
To query and obtain only the titles of books, you can use either of the following queries. They obtain identical results. However, the first query runs faster.
The first query runs faster because it uses the
|