2

Is it possible to put NUL(\x00) to xml ? I want to set it to a xml configuration as a separator e.g.,

<...separator="\x00" .../>
Jammy Lee
  • 1,496
  • 1
  • 14
  • 32
  • possible duplicate of [Why are "control" characters illegal in XML?](http://stackoverflow.com/questions/404107/why-are-control-characters-illegal-in-xml) –  Jan 14 '15 at 06:49
  • This one as well deals with characters in XML [How to encode Ctrl characters in XML](https://stackoverflow.com/questions/27598087/how-to-encode-ctrl-characters-in-xml) – potame Jan 14 '15 at 08:55

1 Answers1

4

No, NUL are not allowed in XML. Neither in XML 1.0, nor in XML 1.1.

Refer to XML recommendations :

A difference between the two versions: in XML 1.1 it is allowed to insert control characters, but NUL (x0) remains forbidden.

potame
  • 7,597
  • 4
  • 26
  • 33