Home » XML » XML_RSS » Bug #1966
Documentation error
Details
| Submitted | 2004-07-23 17:53 UTC |
|---|---|
| From | phperror at mail dot linkas dot it |
| Assigned | clay |
| Status | No Feedback |
| Package | XML_RSS |
| PHP Version | 4.3.8 |
| OS | Not affected |
| Roadmaps | (Not assigned) |
Comments
[2004-07-23 17:53 UTC] phperror at mail dot linkas dot it
Description:
------------
Documentation error
Reproduce code:
---------------
$rss =& new XML_RSS("http://slashdot.org/slashdot.rdf");
$rss->parse();
Expected result:
----------------
Data coming from url
Actual result:
--------------
White page
$url_res=fopen("http://slashdot.org/slashdot.rdf","r");
// or
// $url_res="file_in_the_disk.xml";
// In case of a file
$rss =& new XML_RSS($resource_or_file);
$rss->parse();
[2004-07-25 11:05 UTC] phperror at mail dot linkas dot it
pear info XML_RSS and XML_Parser follow:
About XML_RSS-0.9.2
===================
Provides Classes:
Package XML_RSS
Summary RSS parser
Description Parser for Resource Description Framework (RDF)
Site Summary (RSS)
documents.
Maintainers Martin Jansen <mj@php.net> (lead)
Version 0.9.2
Release Date 2003-03-13
Release License PHP License
Release State stable
Release Notes * Added support for the RSS modules Dublin Core
Metadata and blogChannel
* Big parts of the parsing engine have been
rewritten
Release Deps Package XML_Tree ==
Last Modified 2004-07-14
About XML_Parser-1.2.0
======================
Provides Classes:
Package XML_Parser
Summary XML parsing class based on PHP's bundled expat
Description This is an XML parser based on PHPs built-in xml
extension.
It supports two basic modes of operation: "func"
and "event". In "func" mode, it will look for a
function named after each element
(xmltag_ELEMENT for start tags and
xmltag_ELEMENT_ for end tags), and in "event"
mode it uses a set of generic callbacks.
Since version 1.2.0 there's a new
XML_Parser_Simple class that makes parsing of
most XML documents easier, by automatically
providing a stack for the elements.
Furthermore its now possible to split the parser
from the handler object, so you do not have to
extend XML_Parser anymore in order to parse a
document with it.
Maintainers Stephan Schmidt <schst@php-tools.net> (lead)
Stig Sæther Bakken <stig@php.net> (developer)
Tomas V.V.Cox <cox@php.net> (developer)
Version 1.2.0
Release Date 2004-05-28
Release License PHP License
Release State stable
Release Notes - added setHandlerObj() which allows you to have
the parser separate from the handler methods
- fixed bug with setMode()
- moved the init routines for the handlers in
_initHandlers()
- added new examples
- fixed test files so they do not fail because
of different resource ids
XML_Parser_Simple:
- added new class XML_Parser_Simple that
provides a stack for the elements so the user
only needs to implement one method to handle the
tag and cdata.
Release Deps PHP >= 4.2.0
Package PEAR ==
Last Modified 2004-06-29
[2004-07-25 18:58 UTC] phperror at mail dot linkas dot it
No, error at all, but I've tried to echo, on the XML_RSS package, a debug variables to see if it tries to open the resource as a file or as something different, and I get it as a file.
If I fopen the url, then I get the resource selected as a 'resource' (aka wrapped socket) and it works (see working code).