How can I send the output from Xquer开发者_JAVA技巧y to an xml file
It depends on what processor you're using. Usually this is defined from outside the query from the calling program or command line. For example, if you're using Saxon, you can use the -o command line parameter to specify an output file. See: http://www.saxonica.com/documentation/using-xquery/commandline.xml
Zorba provides a file module for this: http://www.zorba-xquery.com/doc/zorba-1.4.0/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_file.html
精彩评论