Skip Menu |

This queue is for tickets about the XML-Feed CPAN distribution.

Report information
The Basics
Id: 62129
Status: resolved
Priority: 0/
Queue: XML-Feed

People
Owner: DAVECROSS [...] cpan.org
Requestors: wdhawes [...] gmail.com (daily)
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.43
Fixed in: (no value)



Subject: Documentation re PREFERRED_PARSER is wrong
"If you want to use another RSS parser class than XML::RSS (default), you can change the class by setting $PREFERRED_PARSER variable in XML::Feed::RSS package." I think this should be "the XML::Feed::Format::RSS package". The functionality only works for me if I set $XML::Feed::Format::RSS::PREFERRED_PARSER - setting $XML::Feed::RSS::PREFERRED_PARSER has no effect.
From: peter [...] stuifzand.com
On Thu Oct 14 10:48:00 2010, WDH wrote: Show quoted text
> "If you want to use another RSS parser class than XML::RSS (default), > you can change the class by setting $PREFERRED_PARSER variable in > XML::Feed::RSS package." > > I think this should be "the XML::Feed::Format::RSS package". The > functionality only works for me if I set > $XML::Feed::Format::RSS::PREFERRED_PARSER - setting > $XML::Feed::RSS::PREFERRED_PARSER has no effect.
I created and attached a patch that will update the documentation.
Subject: xml-feed-preferred-parser-docs.patch
Index: lib/XML/Feed.pm =================================================================== --- lib/XML/Feed.pm (revision 160) +++ lib/XML/Feed.pm (working copy) @@ -355,13 +355,13 @@ =over 4 -=item C<$XML::Feed::RSS::PREFERRED_PARSER> +=item C<$XML::Feed::Format::RSS::PREFERRED_PARSER> If you want to use another RSS parser class than XML::RSS (default), you can -change the class by setting C<$PREFERRED_PARSER> variable in XML::Feed::RSS -package. +change the class by setting C<$PREFERRED_PARSER> variable in the +XML::Feed::Format::RSS package. - $XML::Feed::RSS::PREFERRED_PARSER = "XML::RSS::LibXML"; + $XML::Feed::Format::RSS::PREFERRED_PARSER = "XML::RSS::LibXML"; B<Note:> this will only work for parsing feeds, not creating feeds.
This patch has been applied to v0.46 which will be on CPAN later today.