Subversion Repositories Applications.papyrus

Rev

Rev 1527 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1527 Rev 2150
Line 101... Line 101...
101
                throw new XML_Feed_Parser_Exception('Invalid input: this is not valid XML');
101
                throw new XML_Feed_Parser_Exception('Invalid input: this is not valid XML');
102
            }
102
            }
Line 103... Line 103...
103
 
103
 
Line -... Line 104...
-
 
104
        }
104
        }
105
 
105
 
106
 
106
        /* detect feed type */
107
        /* detect feed type */
107
        $doc_element = $this->model->documentElement;
-
 
108
        $error = false;
108
        $doc_element = $this->model->documentElement;
109
 
109
        $error = false;
110
        switch (true) {
110
        switch (true) {
111
            case ($doc_element->namespaceURI == 'http://www.w3.org/2005/Atom'):
111
            case ($doc_element->namespaceURI == 'http://www.w3.org/2005/Atom'):
112
                require_once 'XML/Feed/Parser/Atom.php';
112
                require_once 'XML/Feed/Parser/Atom.php';
Line 346... Line 346...
346
    function __toString()
346
    function __toString()
347
    {
347
    {
348
        return $this->feed->__toString();
348
        return $this->feed->__toString();
349
    }
349
    }
350
}
350
}
351
?>
-
 
352
351
?>
-
 
352