#NEWLINE# def write_person_construct( self , handler , element_name , person ) : #NEWLINE# #INDENT# handler . startElement ( element_name , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# handler . addQuickElement ( 'name' , person [ 'name' ] ) #NEWLINE# if ( 'uri' in person ) : #NEWLINE# #INDENT# handler . addQuickElement ( 'uri' , person [ 'uri' ] ) #NEWLINE# #UNINDENT# if ( 'email' in element_name ) : #NEWLINE# #INDENT# handler . addQuickElement ( 'email' , person [ 'email' ] ) #NEWLINE# #UNINDENT# handler . endElement ( element_name )