next

abstract fun next(): EventType

Get next parsing event - element content wil be coalesced and only one TEXT event must be returned for whole element content (comments and processing instructions will be ignored and emtity references must be expanded or exception mus be thrown if entity reerence can not be exapnded). If element content is empty (content is "") then no TEXT event will be reported.

NOTE: empty element (such as ) will be reported with two separate events: START_TAG, END_TAG - it must be so to preserve parsing equivalency of empty element to . (see isEmptyElementTag ())

See also