Nested cursor are used to iterate a single level nested events, so they can only traverse over immediate children of the event (generally, START_ELEEMENT) that the parent cursor points to. Flattening cursors on the other hand traverse over all the descendants (children, children of children etc) of the parent START_ELEMENT. One additional difference is that the flattening cursors do expose END_ELEMENTS so that matching of actual levels is still possible.
Beyond nested/flat (aka "child vs descendant") cursors, there are additional varieties, such as:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|