Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

B. XPath Reference > Operators and Keywords

Operators and Keywords

Here is the complete list of operators and keywords in XPath:

!= (not equal)

Compares its two operands and returns true if the first operand is not equal to the second. (Complete details on how comparisons work are in the section Boolean Operators” in Chapter 3.)

()

Contains a parenthesized expression. In addition to using parentheses in mathematical expressions, parentheses are required around test conditions in the if operator.

* (occurrence indicator)

Represents zero or more of an item.

* (multiplication)

Multiplies its two operands together. In XPath 1.0, the two operands must be numbers or values that can be converted to numbers.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint