In my dreams I want to store the svg icons in a database and reuse them. My intention is to create menus on-the-fly. It seems almost impossible. This example shows a clumsy way to achieve a fraction of this dream:
document.getElementById('icn').innerHTML =<use xlink:href='#hamburger'></use>``
Is there a way to address only the xlink:href so that I can use only the svg id?
Or is there another way to achieve this?
Like this "pseudocode"
document.getElementById('xlink:href').innerHTML = '#hamburger'