XCC for MarkLogic 8

The XML Contentbase Connector (XCC) is an interface to communicate with MarkLogic Server from a Java or .NET middleware application layer. It provides APIs for

  • Evaluating stored XQuery programs
  • Dynamic construction and evaluation of XQuery programs from Java (or .Net) code
  • Type marshalling
  • Document management and streaming inserts


XCC Java distribution (includes javadoc) 2.3 MB(SHA1)
XCC Java source 343 KB(SHA1)
Maven repository


XCC .NET distribution (includes API docs) 18 MB(SHA1)





Older versions

You can find previous versions of XCC for previous releases of MarkLogic here


  • Is the XCC Java can use in as JNDI Data Source in WSO2 Data Services Server?
    • Sorry, but I don't understand your question. Depending on what you're trying to do, you might be better off with the <a href="http://developer.marklogic.com/products/java">Java Client API</a>.
      • Im trying to connect marklogic in <a href = "http://wso2.com/products/data-services-server"> WSO2 DSS </a> does marklogic support WSO2 or not?
  • It should work, but officially MarkLogic 5 has been end of life’ed. So we don’t recommend using a 5.0 client api.
    • Thanks Jane!. But I am getting the following error when using XCC 5.0 with ML8 DB. I have this code :- 1. ResultSequence result = this.databaseSession.SubmitRequest(request); 2. return result.AsString(); And it gives following exception while executing line 2. "IOException while caching streaming ResultSequence: Premature End-of-Sream flush". Any specific reason that XCC 5.0 works fine with ML6 database but throwing the exception if ML8 database is used. When I updated the Dlls to XCC 8.0 it worked perfectly. Please help me understand the reason why it is throwing exception when XCC 5.0 is used with ML8. Thanks in advance.
      • Hi Saurav. I'm not sure why that particular exception is showing up, but since MarkLogic 5 and XCC 5.0 are past their end-of-life period, the solution is to upgrade. (As a side note, asking for help about specific errors is better done on <a href="http://stackoverflow.com/questions/ask?tags=marklogic">Stack Overflow</a> or the <a href="http://developer.marklogic.com/discuss">developer's email list</a>, which will get more people's attention.)
  • Is XCC .NET 5.0 is compatible with Marklogic 8 ?
  • Is the XCC .NET source available?