Hi Julian,
"Julian Petri" <[EMAIL PROTECTED]> wrote on 08/28/2008 05:04:37 PM:
> I want to add a <use> element to my svg document by creating and
> adding it to the DOM with Java. Here's the code:
>
> qm.setAttributeNS(null, "xlink:href", "#QuestionMark");
You need to pass the xlink namespace URI as the first argument
to setAttributeNS here:
String xlinkNS = "http://www.w3.org/1999/xlink";
qm.setAttributeNS(xlinkNS, "xlink:href", "#QuestionMark");
> This is quite strange because it says the xlink:href attribute is
> missing, which is not true.
Actually it is missing since xlink:href is a 'short hand' for the
href attribute in the xlink namespace.