Details
- 
        Type: Bug Bug
- 
        Status: Closed Closed
- 
            Resolution: Fixed
- 
            Affects Version/s: None
- 
            Fix Version/s: 1.2
- 
            Component/s: None
- 
            Labels:None
- 
                        JDK version and platform:java version "1.4.2_08" on Windows XP Professional Version 2002 Service Pack 2
Description
ID attributes get lost outside an element. See the following testcase.
import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver;
import java.util.ArrayList;
public class Bug {
    public static void main(String[] args) 
}
class List {
    public Object o; 
    public ArrayList list = new ArrayList();
}



Daniel,
I've fixed this issue and have updated the snapshots on the website. Please give it a try.