Alternatively, there's a shell script at:
http://uszla.me.uk/space/blog/2007/09/21
which will let you search with arbitrary, namespace-aware
xpath expressions. (as long as you've got xmllint on your
path), so your expression below would work directly if
you saved the script as "xmlget".
Toby
On 30 Jun 2008, at 09:22, Piotr Gaczkowski wrote:
On Thu, Jun 26, 2008 at 4:56 PM, Dirk <[EMAIL PROTECTED]> wrote:
is there already a small cmdline tool where one can specify a xml
file and
the element (like it is a filesystem)?
for example: xmlget blabla.xml blabla/entry[2]/bla
I've written once such a tool basing on libxml example for XPath. It's
available here: http://doomhammer.jogger.pl/2007/06/02/xmlgrep/
--
Cheers,
Piotr Gaczkowski
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml
--
Dr. Toby O. H. White
Dept. Earth Sciences,
Downing Street,
Cambridge CB2 3EQ
United Kingdom
Tel: +44 1223 333464
Fax: +44 1223 333450
Web: http://uszla.me.uk
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml