How would I go about creating an SVG DOM element from a String?
String
Example:
var svgStr = \'
Assuming you are using JavaScript, you can simply pass that string as the innerHTML of an existing element obtained via the DOM API:
innerHTML
var svg2 = " ... "; var container = document.getElementById("container"); container.innerHTML = svg2;
See: JSFiddle