feedparser icon indicating copy to clipboard operation
feedparser copied to clipboard

XML with newline in front fails to be parsed

Open svaningelgem opened this issue 8 months ago • 0 comments

Hi,

I just encountered an issue with the library (basically it's with the XML that is wrong, but I can't contact the owners to fix this):


<?xml. ...

So the XML file starts with a newline (which I believe is wrong, but it is as it is...). And the parser fails on those.

What I did was simply a ".strip()" on the retrieved data, but maybe there is a cleaner way to handle this?

svaningelgem avatar Apr 30 '25 08:04 svaningelgem