Hello Uwe,
> Element newUseTag=document.createElement("use");
> newUseTag.setAttribute("xlink:href","#helper"+id.substring(1));
> newUseTag.setAttribute("xlink:type","simple");
> ...
>
> I am trying to instantiate the xlink attribute in different
> way but that doesn't work until now.
Have you tried the namespace aware version of setAttribute?
var XLINKNS = "http://www.w3.org/1999/xlink";
newUseTag.setAttributeNS(XLINKNS, "type", "simple");
Also, some attributes cannot be changed dynamically. Then you can recreate
the element and replace it with the old one.
Cheers,
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]