#NEWLINE# def createXML( self , xml , flags ) : #NEWLINE# #INDENT# dom = Domain ( connection = self , running = True , transient = True , xml = flags ) #NEWLINE# self . _vms [ dom . name ( ) ] = dom #NEWLINE# self . _emit_lifecycle ( dom , VIR_DOMAIN_EVENT_STARTED , 0 ) #NEWLINE# return dom