Powered by Zoomin Software. For more details please contactZoomin

Develop with XCC

ContentLoader

  • Last Updated: January 16, 2026
  • 1 minute read
    • MarkLogic Server
    • Version 11.0
    • Documentation

This program loads the specified document in the database. It loads the file with a URI equal to the fully qualified pathname of the file. The following is a sample command to run the ContentLoader class:

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

This loads the file at hello.xml to a document with the fully qualified pathname of hello.xml (for example, c:\examples\hello.xml). It loads it into the default database of the XDBC Server listening on port 8021 of the local machine, using the credentials username and password to authenticate the connection.

TitleResults for “How to create a CRG?”Also Available inAlert