You are here

public function RendererInterface::setRootElement in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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);