error on line 39 at column 26: Namespace prefix xlink for href on script is not defined error on line 39 at column 26: Namespace prefix xlink for href on script is not defined xml xml

error on line 39 at column 26: Namespace prefix xlink for href on script is not defined


You never defined the xlink namespace (just like the error tells you)

You'll need to do something like what was done for the sodipodi namespace:

xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"

According to the W3C, the appropriate namespace declaration is:

xmlns:xlink="http://www.w3.org/1999/xlink"

Add that to your root element.


You need to associate the xlink prefix with a namespace. Try adding the following to your svg element:

xmlns:xlink="http://www.w3.org/1999/xlink"