Hi,
I am experimenting with BaseX and have so far built a little toy application that uses an embedded BaseX database. All xml-files in a certain folder, e.g., c:\myXml, is added to the database using the Create and Add commands. This works fine and I can run interesting (and efficient) queries on this. Now we get to my questions:
1. Next time I start my application, I do not want to rebuild the database so I simply connect using the Open command. How do I make sure that the BaseX representation/indexes are synched with the actual XML files in the c:\myXml folder? Does this happen automatically as a side-effect of Open or do I need to take some steps? I am particularly concerned about the case where other programs have manipulated the files when my app was shutdown. 2. Is it possible to do any parts of creating, adding, and opening concurrently? 3. Is it possible to cache results (full or partial) of XQueries? 4. Is it possible to attach schema validation? I do not mind hacking a bit. It seems like there is a SAXHandler available (new Set(Prop.INTPARSE, "false")), could I possibly override that implementation?
Cheers,
Anders