[jdom-interest] ClassCast:troubles: getContent(index).clone()
Bradley S. Huffman
hip at cs.okstate.edu
Wed Mar 10 12:15:58 PST 2004
Try
Element x = (Element) (root.getContent(index).clone());
Brad
"Robert Stukey" writes:
> 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)
More information about the jdom-interest
mailing list