protected function marshall(QtiComponent $component)
    {
        $element = static::getDOMCradle()->createElement($component->getQtiClassName());

        $this->setDOMElementAttribute($element, 'href', $component->getHref());
        $this->setDOMElementAttribute($element, 'media', $component->getMedia());
        $this->setDOMElementAttribute($element, 'type', $component->getType());

        if (($title = $component->getTitle()) != '') {
            $this->setDOMElementAttribute($element, 'title', $component->getTitle());
        }

        return $element;
    }