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 result

Synopsis

xquery [-f xquery-file] [-i input-file] [-n] [var=value ...] xquery-expr

Description

-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 1


CategoryCommands

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