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

17andLearning picture 17andLearning · Dec 6, 2012 · Viewed 9.6k times · Source

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?

Answer

Philippe picture Philippe · Aug 23, 2013

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 ""