Assuming this:
If the string you need to append is SVG and you add the proper namespace, you can parse the string as XML and append to the parent.
var xml = jQuery.parseXML(''); $("svg").append(xml.documentElement))