I have a string that I'm trying to parse to XML like this:
XElement.Parse(XMLdata)
But the problem I'm having is that XMLdata contains this text:
$#x0 resulting in the following exception :
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 6554.
when trying to parse the string to XML.
Is there a way to remove those characters before calling XElement.Parse(XMLdata)
?
Please assist