def start_element(name, attributes)
super
case name
when 'Vm'
vapp = extract_attributes(attributes)
@vm.merge!(vapp.reject {|key,value| ![:href, :name, :status, :type, :deployed].include?(key)})
@vm[:deployed] = response[:deployed] == 'true'
@vm[:id] = @vm[:href].split('/').last
@vm[:vapp_id] = @response[:id]
@vm[:vapp_name] = @response[:name]
@vm[:status] = human_status(@vm[:status])
when 'VApp'
vapp = extract_attributes(attributes)
@response.merge!(vapp.reject {|key,value| ![:href, :name, :size, :status, :type].include?(key)})
@response[:id] = @response[:href].split('/').last
when 'Children'
@in_children = true
else
parse_start_element name, attributes, @vm
end
end