Hi all,

I understand that a SVG file is first converted into a SVG document and then
rendered on the display canvas (squiggle) using the createDocument() 
provided by org.w3c.dom.DOMImplementation. Am i right to say that the
createElementNS()  and setAttribute() methods will add additional elements
and attributes into the SVG document but it will not affect the original SVG
txt file?
 

Second question is that i would like to add the tspan element under the
textPath element
<tspan dy='1.5'>SARKIES ROAD</tspan> 


from this:
 
<textPath xlink:href='#sarkies road1' startOffset='34.00968508957257%'
clip-path='url(#clip1)' font-size='2' dy='1' >SARKIES ROAD
</textPath>


to this:

<textPath xlink:href='#sarkies road1' startOffset='34.00968508957257%'
clip-path='url(#clip1)' font-size='2'>
<tspan dy='1.5'>SARKIES ROAD</tspan>
</textPath>

i believe this can be done easily using the createElement() to add tspan and
setAttribute() to add dy='1.5'
but is there any way to add the SARKIES ROAD under my tspan element?

thanks =)
rdgs,
pires7



-- 
View this message in context: 
http://www.nabble.com/adding-elements-and-attributes-to-the-SVG-Document-tf2869016.html#a8018932
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to