xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy E. Denton" <jden...@galdosinc.com>
Subject RE: Dynamic modification of the DOM
Date Wed, 07 Apr 2004 17:49:07 GMT

Thanks Tonny,

That worked. Namespaces are a pain. Do you know why are there namespaces for
the elements but not the attributes?

Cheers,
Jeremy

> -----Original Message-----
> From: Tonny Kohar [mailto:tonny@kiyut.com]
> Sent: Tuesday, 6 April 2004 8:41 PM
> To: batik-users@xml.apache.org
> Subject: Re: Dynamic modification of the DOM
>
>
> 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
>


---------------------------------------------------------------------
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