#NEWLINE# def set( self , val ) : #NEWLINE# #INDENT# if isinstance ( val , domish . Element ) : #NEWLINE# #INDENT# self . item . children = [ ] #NEWLINE# return XmlHelper ( self . item . addChild ( val ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if len ( self . item . children ) : #NEWLINE# #INDENT# self . item . children = [ ] #NEWLINE# #UNINDENT# self . item . addContent ( self . inf ( self ) )