Revision [239]

This is an old revision of CommandXpath made by DavidLee on 2008-07-04 09:13:42.

 

Command xpath


Name

xpath evaluate an XPATH expression and print the result

Synopsis

xpath [-f xpath-file] [-i input-file] [-n] xpath-expr [-v name value [name value ...]]


Description

-f xpath-file read xpath expression from file
-i input use input as the source xml document, otherwise stdin
if input is an XML expression then use it directly (dont treat as filename).
-n do not use a source context
xpath-expr xpath expression
-v Read remaining pairs of arguments as name/value pairs to assign as xpath variables

Example

$ xls | xpath '//file[1]/@name'
name=".classpath"

Return Value

Returns 0 if the the xpath expression executed successfully. otherwise 1


CategoryCommands

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki