private function parsePorts(\SimpleXMLElement $xmlPorts)
{
$ports = array();
foreach ($xmlPorts as $port) {
$ports[] = new Port((string) $port->attributes()->portid, (string) $port->attributes()->protocol, (string) $port->state->attributes()->state, new Service((string) $port->service->attributes()->name, (string) $port->service->attributes()->product, (string) $port->service->attributes()->version));
}
return $ports;
}