XStream
  1. XStream
  2. XSTR-147

String "\0" serialized as inavlid XML

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • 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.

        Issue Links

          People

          • Assignee:
            Unassigned
            Reporter:
            Stepan Koltsov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: