Skip to main content

Developing with XCC

SimpleQueryRunner

This program allows you to store XQuery in a file and then submit the XQuery to MarkLogic Server. The following is a sample command to run the SimpleQueryRunner class:

java -classpath "XCC_HOME/lib/xcc.jar:XCC_HOME/lib/xccexamples.jar"
     com.marklogic.xcc.examples.SimpleQueryRunner 
     xcc://username:password@localhost:8021 hello.xqy

This submits the contents of the hello.xqy file to a MarkLogic Server XDBC Server running on the local machine at port 8021, using the credentials username and password to authenticate the connection.