title: Create SVG from base64 in javascript
body: <p>i am new to javascript.</p>
  
  <p>i want to create SVG from base64. i am trying <a href="http://jsfiddle.net/XTUmV/28/" rel="nofollow">http://jsfiddle.net/XTUmV/28/</a> 
  but it doesnt show anything. </p>
  
  <pre><code> var image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
   var svgimg = document.createElementNS("http://www.w3.org/2000/svg", "image");
   svgimg.setAttributeNS("http://www.w3.org/1999/xlink", 'xlink:href', image);
  
   document.getElementById("mySvg").appendChild(svgimg);
  </code></pre>
  
  <p>and html:</p>
  
  <pre><code> &lt;svg id="mySvg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;&lt;/svg&gt;
  </code></pre>
  
  <p>base64 should be correct, cause i took it from this <a href="http://jsfiddle.net/MxHPq/" rel="nofollow">http://jsfiddle.net/MxHPq/</a> example</p>
  
  <p>I am doing something stupid or just wrong approach? </p>
  
  <p>thanks</p>