22
8
I am looking for a good tool to perform grep-like operations on XML - for example, extract certain attributes only.
Grep
itself can't handle it - any DFA-equivalent tool can handle only non recursive matches, and mine may be recursive.
I have tried xgrep, but it is quite unstable, and I want a stable and reliable tool.
Any recommendations?
EDIT: I prefer open source tools that work well under Linux.
I tried to clone it, but it seems that the repository is broken. – Hola Soy Edu Feliz Navidad – 2018-05-04T15:35:30.653
Remove the trailing slash from the first link. – Bkkbrad – 2009-08-23T20:27:25.780
I can't get it to work... It never matches on any xpath except '/' (the whole document), which is pretty worthless :( – Hendy Irawan – 2012-01-13T16:29:07.797
@HendyIrawan - Are you sure it's not how you're trying to use xpath? (Like your XML has a default namespace that you're not accounting for?) – Daniel Haley – 2012-03-02T16:15:19.053