How do you query/run reports for XML files?

You can use Xquery to query XML data files.

While SQL is used to query databases for data, XQuery serves the same purpose for XML data.

What can XQuery do?

For example, if you have a XML file which has the price of every book in their catalog, you can get a list of all books where the price of the book ranges from $10 to $20.

Xquery allows you to sort information and run simple reports, get a generated output file with the information which you require.