When i try to write an incoming string to an xml file i get an exception containing the next message:
"0x1b is not a legal XML character."
0x1b is a hex char so all i have to do is replace it to get it to work:
StringBuilder sb = new StringBuilder("0x1b");
instructions = instructions.replace(sb, "");
in wich "instructions" is the string containing the hex.
yet it doesn't seem to work, i still get the same error.
Any suggestions on how to replace that 0x1b?