I am loading a lot of xml documents and some of them return errors like \"hexadecimal value 0x12, is an invalid character\" and there are different character. How to remove
Regex solution is working quite fast even on 100MB XML document.
The following expression string would do the work.
"[\x00-\x08\x0B\x0C\x0E-\x1F]"