#NEWLINE# def el_iter( el ) : #NEWLINE# #INDENT# '\n    Go through all elements\n    ' #NEWLINE# try : #NEWLINE# #INDENT# for child in el . iter ( ) : #NEWLINE# #INDENT# ( yield child ) #NEWLINE# #UNINDENT# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# for child in el . getiterator ( ) : #NEWLINE# #INDENT# ( yield el )