code: function setForeignString(xmlString) {
  		var elt = selElems[0];
  		try {
  			// convert string into XML document
  			var newDoc = Utils.text2xml('<svg xmlns="' + NS.SVG + '" xmlns:xlink="' + NS.XLINK + '">' + xmlString + '</svg>');
  			// run it through our sanitizer to remove anything we do not support
  			S.sanitizeSvg(newDoc.documentElement);
  			elt.parentNode.replaceChild(svgdoc.importNode(newDoc.documentElement.firstChild, true), elt);
  			S.call("changed", [elt]);
  			svgCanvas.clearSelection();
  		} catch(e) {
  			console.log(e);
  			return false;
  		}
  
  		return true;
  	}
docs: Function: setForeignString(xmlString, elt) This function sets the content of element elt to the input XML.  Parameters: xmlString - The XML text. elt - the parent element to append to  Returns: This function returns false if the set was unsuccessful, true otherwise.