parameters: (self, ticket, project_code, snapshot_code, asset_code, instance, context='', options='')
return_statement: return xml
docstring: an update xml to update node info
docstring_summary: an update xml to update node info
docstring_tokens: an update xml to update node info
function: def get_update_xml(self, ticket, project_code, snapshot_code, asset_code, instance, context='', options=''):
          '''an update xml to update node info'''
          try:
              self.init(ticket)
              Project.set_project(project_code)
              
              snapshot = Snapshot.get_by_code(snapshot_code)
  
              # get the loader implementation
              loader_context = ProdLoaderContext()
              loader_context.set_context(context)
              if options != "":
                  loader_context.set_options(options)
  
              loader = loader_context.get_updater(snapshot, asset_code, instance)
              loader.execute()
  
              execute_xml = loader.get_execute_xml()
              xml = execute_xml.get_xml()
  
          finally:
              DbContainer.close_all()
          return xml
function_tokens: def get_update_xml ( self , ticket , project_code , snapshot_code , asset_code , instance , context = '' , options = '' ) : try : self . init ( ticket ) Project . set_project ( project_code ) snapshot = Snapshot . get_by_code ( snapshot_code ) # get the loader implementation loader_context = ProdLoaderContext ( ) loader_context . set_context ( context ) if options != "" : loader_context . set_options ( options ) loader = loader_context . get_updater ( snapshot , asset_code , instance ) loader . execute ( ) execute_xml = loader . get_execute_xml ( ) xml = execute_xml . get_xml ( ) finally : DbContainer . close_all ( ) return xml