protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { case $this->lookupNamespace('gd') . ':' . 'when': $when = new When(); $when->transferFromDOM($child); $this->_when = $when; break; default: parent::takeChildFromDOM($child); break; } }