sgrep (structured grep) is a tool for searching and indexing text, SGML, XML and HTML files and filtering text streams using structural criteria.

WWW: http://www.cs.helsinki.fi/u/jjaakkol/sgrep.html
