[jdom-interest] ClassCast:troubles: getContent(index).clone()
Robin Rosenberg
robin.rosenberg.lists at dewire.com
Wed Mar 10 14:22:06 PST 2004
On Wednesday 10 March 2004 20:30, Robert Stukey wrote:
> I am trying to get a clone of an Element at a certain index, but I
> am throwing some Class Cast Exceptions? I've tried it enough ways to
> consider myself beaten. Any insight on what I am doing wrong would be
> appreciated, thanks.
>
> Element x = (Element)root.getContent(index).clone();
>
>
> java.lang.ClassCastException: org.jdom.Text
> BlogArchive.findElement(BlogArchive.java:127)
> BlogArchive.doGet(BlogArchive.java:70)
Text is-not-an Element. It seems you are not expecting Text here.
-- robin
More information about the jdom-interest
mailing list