xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tonny Kohar <to...@kiyut.com>
Subject Re: Dynamic modification of the DOM
Date Wed, 07 Apr 2004 03:41:00 GMT
Hi,

> 		if (svgDoc != null) {
> 			if (dirty) {
> 				Element rect = svgDoc.createElement("rect");

I think above line should be svgDoc.createElementNS(svgNS,"rect");

> 				rect.setAttribute("x", "100");
> 				rect.setAttribute("y", "100");
> 				rect.setAttribute("width", "400");
> 				rect.setAttribute("height", "400");
> 				rect.setAttribute("fill", "blue");

Same here setAttributeNS(null,"x","100");
so on

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com



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


Mime
View raw message