Checks if a query returns a result.
Result Type
An INTEGER value as follows:
- 0 if the query returns NULL or an empty string, or if the result of evaluating the query on the XML instance is an empty sequence.
- 1 in all other cases.
If the input argument query is NULL, EXISTSNODE returns NULL.