grep-like tool using xpath for xml documents