public function asDom(\TheSeer\fDOM\fDOMDocument $doc)
{
$node = $doc->createElementNS('http://xml.phpdox.net/src', 'docblock');
// add lines and such?
foreach ($this->elements as $element) {
if (is_array($element)) {
foreach ($element as $el) {
$node->appendChild($el->asDom($doc));
}
continue;
}
$node->appendChild($element->asDom($doc));
}
return $node;
}