Revision [115]

This is an old revision of CommandXpath made by DavidLee on 2008-04-25 18:17:46.

 

Command xpath


Name

xpath evaluate an XPATH expression and print the result

Synopsis

xpath [-f xpath-file] [-i input-file] [-n] xpath-expr

Description

-f xpath-file read xpath expression from file
-i input-file use input-file as the source xml document, otherwise stdin
-n do not use a source context

Example

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

Return Value

Returns 0 if the the xpath expression executed successfully. otherwise 1
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki