Sample Applications
- Last Updated: January 16, 2026
- 1 minute read
- MarkLogic Server
- Version 11.0
- Documentation
The source code and API documentation for the sample applications are includes in the XCC packages.
The Java distribution of XCC includes marklogic-xcc-jar-N.x.jar and marklogic-xcc-examples-N.jar files. The commands to launch the sample programs in this section assume you have renamed these jar files to xcc.jar and xccexamples.jar, respectively. The commands to launch the sample programs also assume the XCC Java distribution is installed in XCC_HOME.
The sample applications are as follows:
Sample |
Description |
|---|---|
This class fetches documents from the conentbase and writes their serialized contents to a provided OutputStream. |
|
This program accepts a server URI (in the format expected by |
|
This program demonstrates inserting unbuffered, chunkable dynamic content into the database without spawning a new thread. |
|
This simple program prints out the string |
|
This simple program prints out the string |
|
This simple program invokes a named XQuery module on the server and return the result. |
|
This program demonstrates inserting unbuffered dynamic content into the database by spawning a new thread to write the data. |
|
This is a very simple class that will submit an XQuery string to the server and return the result. |
|
This program demonstrates using MarkLogic Server in a distributed XA transaction, using JBoss as the Transaction Manager. |