XStream
  1. XStream
  2. XSTR-248

Include null values as empty elements in the XML

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      1.5/WinXP

      Description

      Currently, if an object instance contains a field with a null value, that field is left out of the resulting XML. It would be great (REALLY USEFUL), if there was an option to output null fields as empty elments, or something, in the resulting XML. I have seen a number of people ask how to do this on various sites and the mailing list.

        Issue Links

          People

          • Assignee:
            Unassigned
            Reporter:
            Jamie Bisotti
          • Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated: