XMLResource document = (XMLResource) col.createResource("00001", "XMLResource");
is there any auto increment for id?
There is, but it's provided as an XMLObject called 'sequencer' that's registered with /db/system. Basically, you associate a sequence with a common name, and call the next method to retrieve the next ID from the sequence.
-- Tom Bradford - http://www.tbradford.org Chief Architect - The dbXML Group, L.L.C. Developer - Apache Xindice (formerly dbXML) Maintainer - jEdit-Syntax Java Editing Bean Co-Author - O'Reilly's "Learning Xindice"