#NEWLINE# def _set_elem( self , src , new_elem ) : #NEWLINE# #INDENT# for xml_elem in self . _root_xml . findall ( 'project' ) : #NEWLINE# #INDENT# if ( xml_elem . get ( 'src' ) == src ) : #NEWLINE# #INDENT# self . _root_xml . remove ( xml_elem ) #NEWLINE# #UNINDENT# #UNINDENT# self . _root_xml . append ( new_elem )