Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: haarg [...] haarg.org
Cc:
AdminCc:

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



Subject: parse method refuses feeds with UTF-8 BOM
Feeds given as a string to XML::FeedPP->parse aren't detected as strings properly if they begin with a UTF-8 BOM. The underlying parsing library, XML::TreePP, will handle the feeds properly though. Although fixing the auto-detection in that case would be good, it may also be good to have alternate methods that directly specify whether a file, URL, or a string.
RT-Send-CC: xml-feedpp [...] yahoogroups.com
Next release will support BOM. http://xml-treepp.googlecode.com/svn/trunk/XML-FeedPP/lib/XML/FeedPP.pm from_url(), from_file() and from_string() methods are not supported yet. It's a good suggestion, thanks.
From: haaarg [...] gmail.com
On Sat Mar 21 09:45:20 2009, KAWASAKI wrote: Show quoted text
> Next release will support BOM. > > http://xml-treepp.googlecode.com/svn/trunk/XML-FeedPP/lib/XML/FeedPP.pm > > from_url(), from_file() and from_string() methods are not supported yet. > It's a good suggestion, thanks.
I note that with this fix the XML declaration is no longer anchored at the start of the string. Is that an intended change?
Version 0.40 was now released. It accepts -type option on new()/load() methods to specify the type of source. ex. XML::FeedPP->new( "index.rss", -type => 'file' ); XML::FeedPP->new( "http://use.perl.org/index.rss", -type => 'url' ); XML::FeedPP->new( "<rss version=...", -type => 'string' );