Revision [123]

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

 

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
xpath-expr xpath expression

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