You are here

public function RendererInterface::setRootElement in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/RendererInterface.php \Zend\Feed\Writer\Renderer\RendererInterface::setRootElement()

Sets the absolute root element for the XML feed being generated. This helps simplify the appending of namespace declarations, but also ensures namespaces are added to the root element - not scattered across the entire XML file - may assist namespace unsafe parsers and looks pretty ;).

Parameters

DOMElement $root:

File

vendor/zendframework/zend-feed/src/Writer/Renderer/RendererInterface.php, line 92

Class

RendererInterface

Namespace

Zend\Feed\Writer\Renderer

Code

public function setRootElement(DOMElement $root);