I  guess it should be:
 
  var XMLNS = "http://www.w3.org/2000/svg";
  newconElement.setAttributeNS(XMLNS, "xlink", XMLNS); 
 
Martin
 
Hi William Huang,
 
I do not know whether this solves your problem, but I think you should use 'setAttributeNS' for 'xmlns:xlink':
 
    var XLINKNS = "http://www.w3.org/1999/xlink";
    newconElement.setAttributeNS(XLINKNS, "xlink", XLINKNS);
    ....

Reply via email to