protected function takeAttributeFromDOM($attribute) { switch ($attribute->localName) { case 'primary': $this->_isprimary = strcasecmp("true", $attribute->nodeValue); break; default: parent::takeAttributeFromDOM($attribute); } }