Details
-
Type: Bug
-
Status: 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 � when used StaxWriter.
Issue Links
- is related to
-
XSTR-209 DomDriver() does not handle non-printable chars very well (eg. 0x0c)
I suppose, illegal character (and also legal newline and tab) should be escaped in same manner as native2ascii does.