If the XmlReader is processing text data, it always checks that the XML names and text content are valid, regardless of the property setting. Setting CheckCharacters to false turns off character checking for character entity references.
So setting CheckCharacters
to false
won't allow to you parse invalid XML.
You can try to replace binary characters with escapes: '\x01'
with ""
etc. XmlReader
with disabled CheckCharacters
seems to accept those.