Dear Dave,
First off, thanks for building and continuing to maintain what I think is one of the most underrated/undiscovered pieces of open source code out there. Now to my question...
Thanks for the feedback; don't hesitate to pass this on to everyone…
We've been using BaseX 5.7 with very heavy use of the backend for a while now (though we've tried hard not to actually change the BaseX code in our use). On 5.7 we use the "insert" methods of the org.basex.data.Data class to enable mutability (I.e., to add new attributes or elements at specific locations in the document). We prototyped our code from the "insert" proc file. I've noticed that both the insert methods we had been using and the whole "insert" proc command are gone in 6.0. Does 6.0 no longer support mutability? I do notice there are some other insert/update methods instead, but no good calls to them to try and understand how they work. What would be a good procedure for inserting new data given that we have both a Nod and Data reference?
As XQuery Update is supported since BaseX 6.0, all update methods in the Data class have been completely revamped and aligned with the logics of the official language specification. If you want to have more insight on how single update operations are working, I recommend you to check out the org.basex.query.up.primitives package. For example, the method InsertAttribute will show you how to add new attributes into a DBNode instance.
Hope this helps, Christian
___________________________
Christian Gruen Universitaet Konstanz Department of Computer & Information Science D-78457 Konstanz, Germany Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577 http://www.inf.uni-konstanz.de/~gruen