|
XPath_operators
XPath_operators are parameters of
XML Functions.
basic XPath_operators
Basic XPath_operators or simply basic operators
and their description.
-
/
The operator "/" (slash) is called path or children
and selects from the direct children of the left side of the slash.
-
//
The operator "//" (double slash) is called Descendant
and selects from any of the descendants of the left side.
-
*
The operator "*" (asterisk) is called collecting element children. It is used to specify an element
without explicitly naming it.
It acts as a placeholder for a string.
-
@
The operator "@" (at symbol) is called attribute. It is used as a prefix to attribute names.
-
[]
The operator "[]" (square brackets) are called filter.
-
[n]: The operator "[n]" (square brackets with an index number n ) is called index
An index is mainly used to find specific nodes within an array or range of nodes.
The first node is addressed with index number "1".
-
text():
Determines the text nodes for a specific context node.
set XPath_operators
set XPath_operators or simply set Operators and their description.
-
union or | (pipe)
-
intersect
The "intersect" operator returns elements, which are contained in two separate sets.
-
( )
The "( )" operator is used to form "groups" of collection operators.
-
. (dot)
The operator ".", or "dot" is also called period.
In a search context, this term assesses a set containing only a reference node for that search context.
-
and "and" is a Boolean Operator.
-
or "or" is a Boolean Operator.
comparison XPath_operators
comparison XPath_operators or simply comparison operators
and their description.
-
= equal
-
!= not equal
-
< less than
-
<= less or equal
-
> greater than
-
>= greater or equal
See also:
ASE T-SQL - Aggregate Functions, XML Functions.
|