Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.20.2

Doc Bug #13896 Bad info in the RSS feed tutorial
Submitted: 2008-05-14 13:41 UTC Modified: 2008-10-21 13:16 UTC
From: wiesemann Assigned: ashnazg
Status: Closed Package: XML_Serializer
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 0.19.1    
Subscription  


 [2008-05-14 13:41 UTC] wiesemann (Mark Wiesemann)
Manual page: package.xml.xml-serializer.xml-serializer.tutorial-rss.php Don't you think something wrong ?? -channel -item -----------> wrong -item -item -item -item ----------> wrong -channel ----------> wrong -channel -channel -item -item . . like this ... ^^

Comments

 [2008-05-14 13:41 UTC] wiesemann (Mark Wiesemann)
Reported by: sheer71@gmail.com
 [2008-06-29 22:29 UTC] saltybeagle (Brett Bieber)
Well, the example is invalid... perhaps a different example should be used, or the example should be made valid. Chuck, when I ran the example from the tutorial at http://pear.php.net/manual/en/package.xml.xml-serializer.xml-serializer.tutorial-rss.php , the source I get has <array> instead of <rdf:RDF> for the root element... I'm not familiar enough with the package yet, but just wanted to report it here as it seems related to the tutorial. I can try and update the tutorial if you'd like me to - correct the rdf rss example, or switch to some other example such as rss 2.0.
 [2008-09-17 14:24 UTC] ashnazg (Chuck Burgess)
In order to get the existing tutorial's code to properly generate the XML displayed in the tutorial, the 'tagName' option should be renamed 'rootName'. Perhaps this was an option naming change that was done in the package sometime after this tutorial was first written. Looking at the actual bug report text, I'm not following what the complaint is. Is the fact that the ITEM tag has a child ITEM tag what's being complained about?
 [2008-09-17 14:31 UTC] ashnazg (Chuck Burgess)
Corrected that tagName->rootName text in the $options array on the tutorial page (peardoc tutorial-rss.xml). That's committed to CVS now.
 [2008-09-17 14:32 UTC] ashnazg (Chuck Burgess)
Was there something else wrong, Mark and/or Brett, from what you guys saw on that tutorial?
 [2008-09-18 03:41 UTC] wiesemann (Mark Wiesemann)
Chuck, I had only transformed a user note into this bug report. You might want to contact the original author of the user note (email address can be found in the second comment).
 [2008-09-18 15:40 UTC] ashnazg (Chuck Burgess)
Emailed sheer71@gmail.com asking for feedback on this bug.
 [2011-01-20 02:04 UTC] steven (steven h.)
ITEM tag has a child ITEM tag issue can be solved like this: $data['channel'] = array( "title" => "Freedom Ink", "link" => "http://freedomink.org/", ); $data['channel'] = array_merge($data['channel'], $stories);