human
Expat parsing in python 3
assistant
Here is some code to parse a file `sample.xml` using expat parsing in python 3

parser.ParseFile(open('sample.xml', 'rb'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.