Revision [142]
This is an old revision of CommandXquery made by DavidLee on 2008-04-29 16:54:30.
Command xquery
Name
xquery evaluate an XQUERY expression and print the resultSynopsis
xquery [-f xquery-file] [-i input-file] [-n] [var=value ...] xquery-exprDescription
-f xquery-file read xquery script from file-i input-file use input-file as the source xml document, otherwise stdin
-n do not use a source context
var=value 0 or more variable/value pairs. Every variable MUST be declared in the xquery script as an external variable
xquery-expr xquery expression
Example
$ xls | xquery '//file[1]/@name/string()' .classpath
Return Value
Returns 0 if the the xquery expression executed successfully. otherwise 1CategoryCommands