<?xml version="1.0" standalone="yes"?> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <script> <![CDATA[ var doc = document.implementation.createDocument("", "", null); var img = doc.createElementNS("http://www.w3.org/2000/svg", "image"); img.setAttribute("width", "10"); img.setAttribute("height", "10"); img.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", "blueRect10x10.png"); document.documentElement.appendChild(img); ]]> </script> </svg>