DbCollection xmark = xmarkCol.createCollection("dtms");
assert (xmark.getDirectory().exists());
File file = new File(TEST_FILE);
IDocumentTable doc = new DocumentTable.PersistentDocumentTable(xmark, FileUtils.getFileName(file));
DocumentTableModel dtm = new DocumentTableModel(doc);
dtm.loadDocument(new FileInputStream(file));
xmark.putDocument(new Transaction(), file.getName(), doc);
}
public void xtestPutDocumentBig() throws XQueryException, DbException, FileNotFoundException {
DbCollection xmarkCol = DbCollection.getCollection("/test/xmark");