DOM-alike API
Maven artifacts
The DOM-alike layer uses the query module. Follow the JSONiq API setup for dependencies and build requirements.
Working with nodes
The query module adapts SirixDB’s transactional cursors to Brackit’s node and JSON
item interfaces. XML nodes use
XmlDBNode
and BasicXmlDBStore.
JSON objects, arrays and scalar values use the
JsonDBItem
interface and BasicJsonDBStore.
These objects reference a resource transaction; they do not materialize an entire
document in memory. Keep the store and query context open while using them.
Read-only nodes refer to their revision’s snapshot. Updates are applied through
SirixQueryContext, whose commit strategy controls publication.
Use the JSONiq API examples to create a store, query context and compile chain together. For explicit navigation and transaction lifecycle management, see the transactional cursor API.