A Simple Generator
At the simplest level, the XML token generator simply generates the tokens: starts, ends, everything.
I've chosen to use the __call__ method of the parser to be the invocation of the XML token generator: "parser ()". The __call__ method in turn invokes the parser object's __iter__ method.