XStream

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?

Activity

Hide
Joerg Schaible added a comment -

ISO characters will be written as hex entity now. Fixed in head revision.

Show
Joerg Schaible added a comment - ISO characters will be written as hex entity now. Fixed in head revision.
Hide
Joerg Schaible added a comment -

Closing issues before next release.

Show
Joerg Schaible added a comment - Closing issues before next release.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: