Techniques are provided for incrementally maintaining an XML index built
to access XML data that is encoded in binary XML form. Rather than delete
and reinsert index entries of all the nodes of a modified XML document,
only the index entries of the affected nodes are modified. Consequently,
the order key values stored in the index may become inconsistent with the
current hierarchical locations of the nodes to which the order key values
correspond. Techniques are described for resolving the inconsistencies,
and for addressing additional problems that result when the XML index is
path-subsetted.