Hi again, I tried it with setting the namespace to "http://www.w3.org/1999/xlink". (I couldn't find a constant in the XMLConstants class for this one).
This works! So I need the xlink namespace (which seems logical *g*). However thanks for your help! Gruß Thomas Tonny Kohar <[EMAIL PROTECTED]> 14.03.2007 15:33 Bitte antworten an batik-users@xmlgraphics.apache.org An batik-users@xmlgraphics.apache.org Kopie Thema Re: xlink:href Hi, On Wed, 2007-03-14 at 10:57 +0100, [EMAIL PROTECTED] wrote: > > Hello, > > I have a problem displaying SVGDocuments with an embedded image in a > JSVGCanvas. > > imageElement.setAttributeNS(null, "xlink:href", > "data:image/jpg;base64," + Base64.encode(ip.getImageAsByteArray())); > svgRoot.appendChild(imageElement); Have you try String xlinkNS = XMLConstants.XLINK_NAMESPACE_URI; imageElement.setAttributeNS(xlinkNS,"xlink:href",....) on the namespace part use the xlink namespace not null. Regards Tonny Kohar -- Sketsa SVG Graphics Editor http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]