9 attr_accessor :host, :function, :args, :file, :doc
14 @function = Array.new()
19 # Parse Application File
21 def parseApplication(fileName)
22 @file = File.new(fileName);
23 @doc = Nokogiri::XML(@file)
25 for process in @doc.root.xpath("//process")
27 @host[index] = process['host']
28 @function[index] = process['function']
29 @args[index] = Array.new()
31 for arg in process.xpath("./argument")
33 @args[index][arg_index] = arg['value']
48 for i in 0..@host.size-1
49 puts "> Host :" + @host[i]
50 puts ">> Function :" + @function[i]
51 for j in 0..@args[i].size-1
52 puts ">>> Arguments :" + @args[i][j]