Re: How can we specify own key or ID for inserted document

Vadim Gritsenko <[email protected]>
Newsgroups gmane.text.xml.xindice.user
Message-ID <[email protected]>
johan bos wrote:
> Here my problem
> Mail as everyone knows it, have UID specified.
> I want instead of creating a document in my collection a generated ID or 
> Key want to use the UID of the message
> It will simplify processing a lot

What's wrong with the org.xmldb.api.base.Collection.createResource() API? It has 
name parameter.

http://xml.apache.org/xindice/api/org/apache/xindice/client/xmldb/XindiceCollection.html#createResource(java.lang.String,%20java.lang.String)

---------- 8< ----------
Parameters:
     name - Name for the new resource. If it is empty or null, a name
            will be assigned when storing the resource in the database.
---------- 8< ----------

Vadim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.