Bug#441302: ITP: getxpath -- extract a value from a XML file using a XPATH expression
Package: wnpp
Owner: Loic Dachary (OuoU) <loic@debian.org>
Severity: wishlist
* Package name : getxpath
Version : 0.4.0
Upstream Author : Loic Dachary
* URL or Web page : http://specs.dachary.org/getxpath/
* License : GNU GPLv2 or later
Description : extract a value from a XML file using a XPATH expression
getxpath(1) getxpath(1)
NAME
getxpath - extract a value from a XML file using a XPATH expression
SYNOPSIS
getxpath xpath [selector] xmlfile
DESCRIPTION
extract a value from a xmlfile element or attribute based on an xpath
expression. By default the return value is the selector . unless the
selector argument was given.
xmlfile can be a URL or a pathname.
EXAMPLES
$ cat file.xml
<what> yes </what>
$ getxpath /what file://file.xml
yes
$ cat file.xml
<what att="one"><is/></what>
$ getxpath /what/is ../@att file://file.xml
one
$ getxpath /what http://localhost/file.xml
yes
AUTHORS
Loic Dachary <loic@dachary.org>
local getxpath(1)
Reply to: