Re: [xml] has xmlget already been written?

Alternatively, there's a shell script at:

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".


On 30 Jun 2008, at 09:22, Piotr Gaczkowski wrote:

On Thu, Jun 26, 2008 at 4:56 PM, Dirk <noisyb gmx net> 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:

Piotr Gaczkowski
xml mailing list, project page
xml gnome org

Dr. Toby O. H. White
Dept. Earth Sciences,
Downing Street,
Cambridge CB2 3EQ
United Kingdom

Tel: +44 1223 333464
Fax: +44 1223 333450

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]