Fxgrep is a command-line tool for querying an XML document.
Queries can be specified either in an XPath-like pattern language
or using a more verbose (but also more powerful) grammar language.
It is based on the fxp parser.