The Equality Operators

As you would expect, this set of operators is used to determine whether two items are equal or not. The complete set of these operators is summed up in Table 17.1.

Table 17.1. The Operators That Test for Equality
Operator(s)Meaning
$eq$ or =Equality
$ieq$Equality (not case sensitive)
$ne$ or !=Not equal
$ine$Inequality (not case sensitive)

To demonstrate these operators, you'll continue to use the files from the previous hour.

For the source of your data, use the <Catalog> database that was used in the previous hour. The HTML files used to demonstrate the operators will be modifications of those used in the previous hour. In general, the only change will be in the line that performs the node selection.

Go back to the HTML file ...

Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.