IndexedDocument
, containing an "indexed" document element with simple elements as underlying elements.
An element within its context.
Abstract API for "indexed elements".
Partial implementation of the abstract API for "indexed elements".
Document, containing an "indexed" document element.
Indexed Scoped element.
Abstract API for "indexed Scoped elements".
Partial implementation of the abstract API for "indexed Scoped elements".
Factory object for Elem
instances, where Elem
is a type alias for IndexedScopedElem[simple.Elem]
.
This package contains element representations that contain the "context" of the element. That is, the elements in this package are pairs of a root element and a path (to the actual element itself). The "context" of an element also contains an optional document URI.
An example of where such a representation can be useful is XML Schema. After all, to interpret an element definition in an XML schema, we need context of the element definition to determine the target namespace, or to determine whether the element definition is top level, etc.
Below follows a simple example query, using the uniform query API:
The query for Scala book authors would have been exactly the same if normal
Elem
s had been used instead ofindexed.Elem
s (replacingindexedBookstoreElem
bybookstoreElem
)!