feedparser
feedparser copied to clipboard
XML with newline in front fails to be parsed
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?