Revision [143]
This is an old revision of CommandXquery made by DavidLee on 2008-04-29 18:53:48.
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. Values are converted to strings (xs:string).
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