On Wed, Sep 17, 2008 at 8:46 PM, Tak-po Li <[EMAIL PROTECTED]> wrote: > > Hi Natania, > > Following what you wrote, the addressbook works! Thanks you very much for > your help.
You're welcome. I appreciate your patience and help in testing of the application. > I plan to use xindice to store SVG data. Which java files in the > addressbook are for database read/write? You can check java\examples\addressbook\src\java\addressbook\AddContact.java for example of adding a new resource to the database. Addressbook uses XPath queries to retrieve information from database (see java\examples\addressbook\src\java\addressbook\SearchContacts.java). Take a look at java\examples\guide\src\org\apache\xindice\examples\RetrieveDocument.java for an example of reading a document from the database - it's from a different example application, but should give you an idea of how it works. I would also recommend to take a look at the code for Xindice command-line tool (see files in java\src\org\apache\xindice\tools\command\). Regards, Natalia > Thanks, > > Tak >