You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Tonny Kohar <to...@kiyut.com> on 2004/04/01 03:49:42 UTC
Re: Drawing a text in a SVG document
Hi,
> <text xml:space="preserve" x="10" y="40" style="stroke:none;">Value from
> the html form</text>
>
> - using the DOM implementation
> Element svgRoot = document.getDocumentElement();
> Element texteElmt = document.createElementNS(svgNS, "text");
texteElmt(null, "x","10");
texteElmt(null, "y","40");
texteElmt(null, "style,"stroke:none;");
Text text = document.createTextNode("Value from html from");
texteElmt.appendChild(text);
svgRoot.appendChild(texteElmt);
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