XStream
  1. XStream
  2. XSTR-119

JDOM reader/writer implementation

    Details

    • Type: New Feature New Feature
    • Status: Closed 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).

        People

        • Assignee:
          Unassigned
          Reporter:
          Joe Walnes
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: