#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# if self . prettyprint : #NEWLINE# #INDENT# self . indent ( self . xml ) #NEWLINE# #UNINDENT# s = tostring ( self . xml ) . decode ( self . encoding ) #NEWLINE# return s