protected function marshall(QtiComponent $component)
    {
        $element = self::getDOMCradle()->createElement('templateProcessing');

        foreach ($component->getTemplateRules() as $templateRule) {
            $element->appendChild($this->getMarshallerFactory()->createMarshaller($templateRule)->marshall($templateRule));
        }

        return $element;
    }