|
Home > Online Product Documentation > Table of Contents > Wildcards in Queries Wildcards in QueriesIn a query, you can include an asterisk (*) to represent all elements. For example:
This query searches for all
The * collection returns all elements that are children of the context node, regardless of their tag names.
The next query finds all
The following query returns the grandchild elements of the current context.
Restrictions
Usually, the asterisk (*) returns only elements. It does not return processing instructions, attributes, or comments, nor does it include attributes or comments when it maintains a count of nodes. For example, the following query returns
Wildcards in strings are not allowed. For example, you cannot define a query such as the following:
AttributesTo use a wildcard for attributes, you can specify @*. For example:
For each
|