Re: Navigating SVG DOM

2005-03-10 Thread Thomas DeWeese
KE Gan wrote: (2) Use the inherited org.w3c.dom.Element.getElementByTagName() to get the list of nodes with the same tag name. You probably need to use the 'getElementByTagNameNS' calls and use the SVG Namespace to find SVG elements. (3) Use the org.w3c.dom.Element.getElementByTagName(), then us

Re: Navigating SVG DOM

2005-03-08 Thread Tonny Kohar
Hi, > I want to manipulate a SVG document (loaded from a file) using Batik's > SVG DOM api (org.apache.batik.dom.svg). > > > (1) The sample in Batik's website show that to get a SVGDocument > instance, I have to cast from a org.w3c.dom.Document, which in turn I > obtain from SAXSVGDocumentFactor

Re: Navigating SVG DOM

2005-03-08 Thread KE Gan
I think I am going to answer some of my own questions B-) Just happen to understand more today. (2) Use the inherited org.w3c.dom.Element.getElementByTagName() to get the list of nodes with the same tag name. (3) Use the org.w3c.dom.Element.getElementByTagName(), then use cast the node to the ap