src/Formatter/Formatter.php
public function render($xml, $context = null, ServerRequestInterface $request = null)
    {
        $renderer = $this->getRenderer();

        $this->events->dispatch(new Rendering($renderer, $context, $xml, $request));

        return $renderer->render($xml);
    }
public function render($xml, $context = null, ServerRequestInterface $request = null)
    {
        $renderer = $this->getRenderer();

        $this->events->dispatch(new Rendering($renderer, $context, $xml, $request));

        return $renderer->render($xml);
    }
public function render ( $ xml , $ context = null , ServerRequestInterface $ request = null ) { $ renderer = $ this -> getRenderer ( ) ; $ this -> events -> dispatch ( new Rendering ( $ renderer , $ context , $ xml , $ request ) ) ; return $ renderer -> render ( $ xml ) ; }
Render parsed XML.

@param string $xml
@param mixed $context
@param ServerRequestInterface|null $request
@return string
Render parsed XML .