public function getBodyNode()
    {
        $body = $this->dom->getElementsByTagName('body')->item(0);
        if ($body == null) {
            $body = $this->dom->createElement('body');
            $body = $this->dom->documentElement->appendChild($body);
        }
        return $body;
    }
public function getBodyNode()
    {
        $body = $this->dom->getElementsByTagName('body')->item(0);
        if ($body == null) {
            $body = $this->dom->createElement('body');
            $body = $this->dom->documentElement->appendChild($body);
        }
        return $body;
    }
public function getBodyNode ( ) { $ body = $ this -> dom -> getElementsByTagName ( 'body' ) -> item ( 0 ) ; if ( $ body == null ) { $ body = $ this -> dom -> createElement ( 'body' ) ; $ body = $ this -> dom -> documentElement -> appendChild ( $ body ) ; } return $ body ; }
Get the document's body as DOMElement

@return \DOMElement
Get the document s body as DOMElement