xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tonny Kohar" <tonny.ko...@gmail.com>
Subject Re: JSVGCanvas does not update with modified DOM using Update Manager
Date Thu, 01 Nov 2007 04:07:32 GMT
Hi,

On 11/1/07, Marc-Wayne M. Formales <mformales@msn.com> wrote:
>
>     Element animate = diagramSVG.createElement("animateColor"); //where
> diagramSVG is Document type
>     //set attributes
>     animate.setAttribute( ...);
>       ...

Batik is namespace aware, so you need to use namespace when creating
or set attribute using the namespace aware methods

String svgNS = SVGConstants.SVG_NAMESPACE_URI;
diagramSVG.createElementNS(svgNS,...)
animate.setAttributeNS(svgNS,...)

Regards
Tonny Kohar
-- 
Inspiration and Expression
http://blogs.kiyut.com/tonny/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message