Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)
| Tutorials - How to Apply a Simple XPath Filter |
Page 2 of 2 |
We can make our filter criteria more sophisticated by adding logic to the filter expression. For instance, suppose we want to let the filter pass only those parents with at least one daughter and at least of son. To accomplish this, we can introduce the XPath “and” keyword into the filter, followed by an additional clause.

The same basic strategy allows us to select only those parents with at least three daughters.

In this case, we make use of the built-in XPath function “count.”
|
|
|