Error when reading a sitemap with comments

This happens with a lot of sitemaps as they are usually generated by
some sort of service or software package that inserts a comment with
their urls as free advertising.