XStream
  1. XStream
  2. XSTR-473

CLONE -String "\0" serialized as inavlid XML

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      Hello,

      according to XML 1.0 spec, valid XML charactes are

      #x9 | #xA | #xD | x20-#xD7FF | xE000-#xFFFD | x10000-#x10FFFF

      and any other characters are not allowed to appear in XML document, even as character references.

      I tried to serialize String "\0", and got illegal character NUL in XML file when used default serializer and got invalid character reference &#x0 when used StaxWriter.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Roman Wolf
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: