Skip Menu |

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

Report information
The Basics
Id: 36270
Status: resolved
Priority: 0/
Queue: XML-FeedPP

People
Owner: Nobody in particular
Requestors: hirsch [...] streber24.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.35
Fixed in: (no value)



Subject: Invalid feed source in RSS feeds
Hello, When I try to parse the URL http://www.microsoft.com/technet/security/advisory/RssFeed.aspx?securityadvisory I get the error message "Invalid feed source". Now i analyzed the Sourcecode from File "FeedPP.pm" and at line 481 I changed the line from elsif ( $source =~ m#(^\s*)(<\?xml.*\?>|<\!DOCTYPE)#i ) to elsif ( $source =~ m#(^\s*)(<\?xml.*\?>|<\!DOCTYPE|<rss.*>)#i ).. After the changes the parsing process is working.. best regards bertl
It seems that it works now. $ perl -MXML::FeedPP -e 'print XML::FeedPP->new("http://www.microsoft.com/technet/security/advisory/RssFeed.aspx?securityadvisory")->title()' Latest Security Advisories- Thanks. On 木曜日 5月 29 07:36:35 2008, bertl wrote: Show quoted text
> Hello, > > When I try to parse the URL >
http://www.microsoft.com/technet/security/advisory/RssFeed.aspx?securityadvisory Show quoted text
> I get the error message "Invalid feed source". > > Now i analyzed the Sourcecode from File "FeedPP.pm" and at line 481 I > changed the line from > elsif ( $source =~ m#(^\s*)(<\?xml.*\?>|<\!DOCTYPE)#i ) > to > elsif ( $source =~ m#(^\s*)(<\?xml.*\?>|<\!DOCTYPE|<rss.*>)#i ).. > > After the changes the parsing process is working.. > > best regards > bertl
RT-Send-CC: xml-feedpp [...] yahoogroups.com
XML::FeedPP 0.38 is released with resolving this problem. http://xml-treepp.googlecode.com/svn/trunk/XML-FeedPP/Changes Thanks for reporting and I'm sorry for my misunderstanding. I found how to cause "Invalid feed source" error. perl -MURI::Fetch -MXML::FeedPP -e 'print +XML::FeedPP->new(URI::Fetch- Show quoted text
securityadvisory")->content)->title, "\n";' 2>&1 | more Now 0.38 supports this. http://www.kawa.net/works/perl/feedpp/feedpp-e.html Regards