function getFrame() { $xml = parent::getFrame(); foreach (explode("\n", str_replace('><', ">\n<", trim($xml))) as $line) { $this->debug("S: %s", $line); } return DOMDocument::loadXML($xml); }