def start_element(name, attributes)
super
case name
when "Cpu"
@in_cpu = true
when "DeployedVmsQuota"
@in_deployed_vms_quota = true
when "InstantiatedVmsQuota"
@in_instantiated_vms_quota = true
when "Link"
link = extract_attributes(attributes)
@response["links"] << link
when "Memory"
@in_memory = true
when "Network"
network = extract_attributes(attributes)
@response["AvailableNetworks"] << network
when "ResourceEntity"
resource_entity = extract_attributes(attributes)
@response["ResourceEntities"] << resource_entity
when "StorageCapacity"
@in_storage_capacity = true
when "Vdc"
vdc = extract_attributes(attributes)
@response["href"] = vdc["href"]
@response["name"] = vdc["name"]
end
end