public function to_xml() {
        $this->validate();
        foreach ($this->entries as $entry) {
            $entry->id = 'portfolio:' . $entry->id;
            $this->feed->appendChild($entry->to_dom($this->dom, $this->user));
        }
        return $this->dom->saveXML();
    }
public function to_xml() {
        $this->validate();
        foreach ($this->entries as $entry) {
            $entry->id = 'portfolio:' . $entry->id;
            $this->feed->appendChild($entry->to_dom($this->dom, $this->user));
        }
        return $this->dom->saveXML();
    }
public function to_xml ( ) { $ this -> validate ( ) ; foreach ( $ this -> entries as $ entry ) { $ entry -> id = 'portfolio:' . $ entry -> id ; $ this -> feed -> appendChild ( $ entry -> to_dom ( $ this -> dom , $ this -> user ) ) ; } return $ this -> dom -> saveXML ( ) ; }
Return the entire feed as a string.
Then, it calls for validation

@return string feeds' content in xml
Return the entire feed as a string . Then it calls for validation