On Tue, 27 Nov 2001, Robert J. Lebowitz wrote:
> I'm using dom4j 1.1, and had a situation where I cast a set of Nodes as
> elements that I want to detach. I found that the elements didn't have the
> detach method, even though they are subclasses of the Node interface...
>
> Element p = (Element)list.get(i);
> p.detach();
>
> any idea what is the matter???
It's there, and I use it all the time.
Can you copy/paste the exact error that the compiler is giving you?
You casting to org.dom4j.Element or to org.w3c.dom.Element?
Maybe spurious import statement?
-bob
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user