Filtering the Data

In all but the most trivial of cases, your database files will be so large that you won't even be able to comprehend the entire contents. Your interest will be in only those items that satisfy some specific criteria. Therefore, you must write a program that will examine all the data and filter out and display only those values that satisfy your requirements.

You can filter the data in many different ways. The two that you'll look at now are using comparison operators and examining XML attributes.

Filtering by Using Comparison Operators

When you're performing queries, it's possible to select only those records in which the values of a field satisfy a specific criteria. You do this by inserting the correct operator inside the ...

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.