Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stanza = null
- while parser has more:
- switch on token type:
- START_TAG:
- elem = create element from parser state
- if stanza is not null:
- add elem as child of stanza
- stanza = elem
- END_TAG:
- parent = parent of stanza
- if parent is not null:
- fire OnStanza event
- stanza = parent
Add Comment
Please, Sign In to add comment