#NEWLINE# def addQuickElement( self , name , contents = None , attrs = None ) : #NEWLINE# #INDENT# 'Convenience method for adding an element with no children' #NEWLINE# if ( attrs is None ) : #NEWLINE# #INDENT# attrs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# self . startElement ( name , attrs ) #NEWLINE# if ( contents is not None ) : #NEWLINE# #INDENT# self . characters ( contents ) #NEWLINE# #UNINDENT# self . endElement ( name )