Removing this data and saving the file again fixed the problem and Illustrator now loads the file.datatype Library=" xmlns:xsi=" xsi:schema Location=" xmlns:svg=" ..document fails to validate, reporting the following error.This library is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.See version 2.1 and version 3 of the GNU Lesser General Public License for more details.Without validation, we cannot get any of the benefits of using Oxygen, and may as well use a text editor. As an XML-based language, SVG can be validated just as HTML is.
In order to ensure their SVG-infused pages still validate, developers need to be careful in how SVG is added to their code: Perhaps the ideal case, at least in terms of clarity.A solution to this problem would be to write a custom validation constraint.However, I'm pretty sure that this is one of the things that might be needed more often in the future so the best place for it is inside the Symfony Core. @yguedidi @c H40z-Lord right, but keep in mind that the mimetype as provided from the browser is discarded and instead the mimetype is fetched from the actual uploaded file.This is necessary as the mimetype of the request can be altered to be anything and doesn't have to be connected to the file itself. Now I wanted to have a look at the Image constraint and think about how to integrate SVG images (and possibly other vector formats for the future) into it.My proposed changes would look like this: That way everything is nice and separated from each other.As an alternative you can also try our non-DTD-based validator.