рони,
 То есть, если я правильно понял, нужно так?
ar path = document.getElementById(id);
  if (!path){
	path = document.createElementNS("http://www.w3.org/2000/svg","path");
	path.setAttributeNS("http://www.w3.org/2000/svg","id", id);
	path.setAttributeNS("http://www.w3.org/2000/svg","fill","none");
	path.setAttributeNS("http://www.w3.org/2000/svg","stroke","black");
	path.setAttributeNS("http://www.w3.org/2000/svg","stroke-width","2");
	path.setAttributeNS("http://www.w3.org/2000/svg","maker-end","url(#arrowhead)");
	document.getElementById("Arrows").appendChild(path);
  }
  console.log(document.getElementById(id));
  path.setAttributeNS("http://www.w3.org/2000/svg","d", dStr);
Но все равно не отображается...