[jdom-interest] Problems with getChildren() and java.util.List
Steffen Volz
steffen.volz at ifp.uni-stuttgart.de
Tue Sep 17 03:15:23 PDT 2002
Trying to compile the following code
-------------------------
import org.jdom.*;
import org.jdom.output.*;
import org.jdom.input.*;
import java.io.*;
import java.util.*;
...
Element root = doc.getRootElement();
List children = root.getChildren();
...
-------------------------
I get this error:
Test.java:66: incompatible types
found : com.sun.java.util.collections.List
required: java.util.List
List children = element.getChildren();
I have tried to figure out the reason, but I didn't find any helpful replies that were being sent to people having the same problem.
I'm using sdk 1.4.0 and jdomb8. There is no other sdk installed on my machine.
Does anyone show me the way?
Thanks in advance,
Steffen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020917/64cd2687/attachment.htm
More information about the jdom-interest
mailing list