How can I get XQilla to use my tree model / DOM?
XQilla has a reasonably simple data model abstraction, to allow it to work on any data model where a suitable mapping to XML can be defined.
The central class that you will need to provide an implementation for is XQillaConfiguration∞
, from which you can control all aspects of the data model used by XQilla. There are two existing implementations of this class in XQilla, XercesConfiguration∞
, which you should be able to use as templates for what you want to do.
Other objects you will need to provide an implementation for are SequenceBuilder∞
(if you want your data model to support XQuery Update). SequenceBuilder
will create the most important object for your implementation of the data model, an implementation of the Node∞