protected function takeAttributeFromDOM($attribute) { switch ($attribute->localName) { case 'name': $this->_name = $attribute->nodeValue; break; case 'value': $this->_value = $attribute->nodeValue; break; default: parent::takeAttributeFromDOM($attribute); } }