XStream
  1. XStream
  2. XSTR-352

Strings containing invalid XML characters are serialized, but cannot be deserialized.

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1.3
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      Sun 1.5.0_03 for Windows

      Description

      For example, a String containing the Unicode character 0x4 (ctrl-d), will be serialized, but when deserialization is attempted an Exception is thrown: "An invalid XML character (Unicode: 0x4) was found in the element content of the document"

      Better might be to encode the String as a byte-array?

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Bruce Sutherland
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: