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

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

 [2008-05-14 18: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 ... ^^


 [2008-05-14 18:41 UTC] wiesemann (Mark Wiesemann)
Reported by:
 [2008-06-30 03: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 , 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 19: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 19: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 19: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 08: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 20:40 UTC] ashnazg (Chuck Burgess)
Emailed asking for feedback on this bug.
 [2011-01-20 07: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" => "", ); $data['channel'] = array_merge($data['channel'], $stories);