Matplotlib is a popular Python plotting library. It has an SVG rendering backend which creates files that typically contain the following element at the top:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
See this for example: https://github.com/matplotlib/matplotlib/blame/192b7c24d153ab36b779bcd51f4050134d1ab254/lib/matplotlib/mpl-data/images/move.svg#L2-L3
Uploading files containing this element to MediaWiki fails with this error:
The XML in the uploaded file could not be parsed.
When the !DOCTYPE svg element is removed, the upload works. Since the matplotlib SVG files can be rendered by all common web browsers and image viewers, I think this is a bug in MediaWiki.