Unsure if I really like SAX-style xml parsing or not. At least it is a pretense to build a state machine.