#661551 libxml-treepp-perl: Please ignore Unicode BOM at start of file

#661551#5
Date:
2012-02-27 21:57:23 UTC
From:
To:
When trying to parse the feed at
http://www.americastestkitchen.com/radio/rss/iTunesRSSFeed.xml
FeedPP gives error:

Invalid string: [\xFEFF] before <?xml version="1.0" encoding="utf-8"?> at /usr/share/perl5/XML/FeedPP.pm line 553

The XML standard allows a byte order mark, so this shouldn't be rejected
by FeedPP.

(Maybe this bug really belongs to libxml-treepp-perl, I'm not sure, but
both modules have the same author, so...)

#661551#10
Date:
2012-03-05 19:05:20 UTC
From:
To:
Thanks for your bug report, I've forwarded it upstream.


Cheers,
gregor

#661551#17
Date:
2013-08-22 00:42:21 UTC
From:
To:
Hi,

Anthony DeRobertis wrote:
[...]

Grepping through the source code of both modules shows that the error
message actually comes in XML::TreePP indeed:

/usr/share/perl5/XML/TreePP.pm:780:            $self->warn( "Invalid string: [$ahead] before <$match>" );

There are two new upstream versions of XML::TreePP available, but this
issue doesn't seem to be fixed upstream yet -- at least according to
http://cpansearch.perl.org/src/KAWASAKI/XML-TreePP-0.41/Changes

Maybe using File::BOM could help there.

... so it shouldn't be an issue that the upstream bug report currently
is still file against the wrong perl module. :-)

		Regards, Axel