Save result of XSQL query to a file in Java
I want to Save result of开发者_如何学运维 an XSQL query to a file using Java.
Does any one know a way to do this?
The Oracle document on Using XSQL in Java Programs has instructions on how to call an XSQL from Java and get the result as an XMLDocument
or send it to a PrintWriter
or OutputStream
. There's a short example program there that sends the result to System.out, but it could be easily modified to send it to a file.
精彩评论