[Montag-users] newbie question - addDocument()
Status: Beta
Brought to you by:
sbtourist
|
From: Enric J. <en...@nm...> - 2006-02-23 17:27:12
|
Hello,
I want to test the montag's addDocument() operation over eXist.
addDocument expects a collection, but I have just installed eXist, so the database is empty.
So I guess I have to call first createCollection(), but I have to pass a parent collection.
If I put "" in the parent parameter then I receive an error:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
If I put null, I receive the error:
Error in 'parent' parameter
So, I have two questions:
1. what should I put in parent?
2. do I have to create an entry in the local-config element of conf/local-config.xml with the name of the new collection? Does montag automaticaly create the collection in eXist?
I'd appreciate any help on this.
Regards,
-Enric
|