protected function _loadEC2SecurityGroupList(\SimpleXMLElement $sxml)
{
$list = new EC2SecurityGroupList();
$list->setRds($this->rds);
if (!empty($sxml->EC2SecurityGroup)) {
foreach ($sxml->EC2SecurityGroup as $v) {
$item = new EC2SecurityGroupData();
$item->setRds($this->rds);
$item->eC2SecurityGroupId = $this->exist($v->EC2SecurityGroupId) ? (string) $v->EC2SecurityGroupId : null;
$item->eC2SecurityGroupName = $this->exist($v->EC2SecurityGroupName) ? (string) $v->EC2SecurityGroupName : null;
$item->eC2SecurityGroupOwnerId = $this->exist($v->EC2SecurityGroupOwnerId) ? (string) $v->EC2SecurityGroupOwnerId : null;
$item->status = $this->exist($v->Status) ? (string) $v->Status : null;
$list->append($item);
unset($item);
}
}
return $list;
}