You are here

public function FrxXMLDoc::render in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.4 docformats/FrxXMLDoc.inc \FrxXMLDoc::render()

Overrides FrxDocument::render

File

docformats/FrxXMLDoc.inc, line 25
FrxHtmlDoc Straight XML document with no wrapping theme. @author davidmetzler

Class

FrxXMLDoc
@file FrxHtmlDoc Straight XML document with no wrapping theme. @author davidmetzler

Code

public function render($r, $format, $options = array()) {
  $body = $this
    ->check_markup($r->html);
  $output = '<?xml version="1.0"?>' . "\n";
  $opening_tag = $this
    ->_build_opening_root_tag_contents();
  $ending_tag = $this->root_tag;
  $output = '<?xml version="1.0"?>' . "\n";
  $output .= "<{$opening_tag}>\n  {$body}\n</{$ending_tag}>";
  return $output;
}