Details
-
Type: New Feature
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1
-
Component/s: None
-
Labels:None
Description
Contributed by Laurent Bihanic
// Marshal object to JDOM document
JDOMWriter writer = new JDOMWriter();
xstream.marshal(x, writer);
List result = writer.getResult();
// Unmarshal JDOM document
MyObject obj = (MyObject) xstream.unmarshal(new JDOMReader(doc));
The attached JAR file contains the JDOMWriter and JDOMReader classes for JDOM b9. JDOM b10 users need to uncomment the b10-related code in JDOMReader.moveUp() (handling of the Parent interface).
Upgrade this to JDOM 1.0. No need to support earlier versions.