public function export(\SimpleXMLElement $blockNode) { $data = $blockNode->addChild('data'); $data->addAttribute('table', $this->btTable); $record = $data->addChild('record'); $cnode = $record->addChild('content'); $node = dom_import_simplexml($cnode); $no = $node->ownerDocument; $content = LinkAbstractor::export($this->content); $cdata = $no->createCDataSection($content); $node->appendChild($cdata); }