Re: [Montag-users] newbie question - addDocument()
Status: Beta
Brought to you by:
sbtourist
|
From: Enric J. <en...@nm...> - 2006-02-24 11:53:32
|
I answer myself, it seems that the root parent is "db". -Enric On Thu, 23 Feb 2006, Enric Jaen wrote: > > 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 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Montag-users mailing list > Mon...@li... > https://lists.sourceforge.net/lists/listinfo/montag-users > > |