Jammy Lee
Jammy Lee

Reputation: 1516

Can I put NUL (\x00) in xml

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" .../>

Upvotes: 2

Views: 1225

Answers (1)

potame
potame

Reputation: 7905

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.

Upvotes: 4

Related Questions