Skip to main content

Developing with XCC

ContentLoader

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.