/**
  * Marshall a Col object into a DOMElement object.
  * 
  * @param QtiComponent $component A Col object.
  * @return DOMElement The according DOMElement object.
  * @throws MarshallingException
  */
 protected function marshall(QtiComponent $component)
 {
     $element = self::getDOMCradle()->createElement('col');
     if ($component->getSpan() !== 1) {
         self::setDOMElementAttribute($element, 'span', $component->getSpan());
     }
     self::fillElement($element, $component);
     return $element;
 }
 /**
  * Marshall a Colgroup object into a DOMElement object.
  * 
  * @param QtiComponent $component A Colgroup object.
  * @return DOMElement The according DOMElement object.
  * @throws MarshallingException
  */
 protected function marshall(QtiComponent $component)
 {
     $element = self::getDOMCradle()->createElement('colgroup');
     self::setDOMElementAttribute($element, 'span', $component->getSpan());
     foreach ($component->getContent() as $col) {
         $marshaller = $this->getMarshallerFactory()->createMarshaller($col);
         $element->appendChild($marshaller->marshall());
     }
     self::fillElement($element, $component);
     return $element;
 }