kxml.next — Get next parsing event.
The kxml.next advance the parser to the next event. The int value returned from next determines the current parser state and is identical to the value returned from following calls to kxml.event.
The following event types are seen by kxml.next .
0 :Initially, the parser is in the START_DOCUMENT state.
2: An XML start tag was read.
4: Text content was read; the text content can be retreived using the kxml.gettext method.
3: An end tag was read.
1: No more events are available.