Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Illustrator SVG export not working (namespace prefix inkscape not defined)

I'm new to the world of vector editing. I'm trying to export a .SVG file from a .AI file. However, when I export it, I get the following error in the generated file:

Error on line 57 at column 354: Namespace prefix inkscape for cy on namedview is not defined 

Could someone please tell me what this means and how I can fix it?

like image 412
17andLearning Avatar asked Dec 06 '12 13:12

17andLearning


1 Answers

Try to open your SVG file with a text editor: you'll see some XML attributes with the inkscape namespace, like for instance

inkscape:label="Some label"

These attributes are probably coming from the original SVG file (I'm guessing you grab it from Wikipedia?). You can safely remove them all -- maybe with a grep find and replace in your text editor like :

find inkscape:label="[^"]*" replace with ""
like image 52
Philippe Avatar answered Oct 14 '22 08:10

Philippe