xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kane <dk...@money.buser.net>
Subject RE: Obtain a SVGTextElement from a SVGDocument
Date Thu, 06 Sep 2001 13:17:52 GMT

What do you want to do with the node?  There is very little in the
SVGTextElement interface.  But in general, you'll do something like the

     Nodelist n = document.getElementsByTagName("text");
     Element e = n.item(0);

The element interface should give you visibility what I imagine you might


Albert wrote:
>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 ?

 David Kane                     david_kane@houseofyin.com
"What's Life?"                  http://www.houseofyin.com

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message