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 Albert Valls <av...@ngeografics.com> on 2001/09/06 12:03:47 UTC
Obtain a SVGTextElement from a SVGDocument
I parse a file getting a SVGDocument. I'm interested in treating the <text> tags and to do so I use the method getElementsByTagName("text"). The problem is that when I have one of the nodes, I can't cast it to a SVGTextElement, it gives to me a classCastException: org.apache.batik.dom.GenericElement.
What's wrong with what i'm doing ?
Thanks.