xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andres Toussaint <and...@onemileup.com>
Subject Insert SVG fragment
Date Tue, 11 Jan 2005 15:17:19 GMT
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


Mime
View raw message