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 Andres Toussaint <an...@onemileup.com> on 2005/01/11 16:17:19 UTC
Insert SVG fragment
I have a SVGDocument to which i want to append a SVG element. The SVG
element is retrieved from a DB as SVG fragment in plain text (from a
MySQL TEXT field), something like this:
<g id="toolbar"
style="fill-rule:nonzero;clip-rule:nonzero;fill:#FFE95F;stroke:#000000;
stroke-width:5;stroke-miterlimit:4;" visibility="visible">
<path id="toolBk" style="stroke-width:1;"
d="M100.5,402.5H0.5V2.5h100v400z"/>
</g>
How can i parse this SVG fragment into a SVGGElement so i can then
append it to my DOM tree?
Thanks,
Andres.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: Insert SVG fragment
Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Andres,
Andres Toussaint wrote:
> How can i parse this SVG fragment into a SVGGElement so i can then
> append it to my DOM tree?
You want the parseXML function on the Window object.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org