xmlgrep does a grep on XML files. Instead of using regular expressions it uses XPath expressions ... The results can be the names of the files or XML elements containing matching elements.