Hi, After querying a database, the getId() method returns 'null',and this was stated in the API, as it said:
'Returns the unique id for this Resource or null if the Resource is anonymous. The Resource will be anonymous if it is obtained as the result of a query.' Making a note on the second sentence, id is null if its from a query!!! So my question is, how do I retrieve the ID which I set when I added the records to the database. I added this to the database using the code: XMLResource document = (XMLResource) col.createResource("some-uniqueId- 2", "XMLResource"); document.setContent(data); col.storeResource(document); Thanks in advance! Gul Akbar ------------------------------------------------- This mail sent through IMP: webmail.brad.ac.uk