I have this problem.. I’m receiving data from a client..Using a socket connection. But this is not important. All the data is stored in an XML file using the XDocument object.
Sometimes when calling the XDocument.Save(filestream) and passing to it data with particular characters or symbols, I get an Exception like (invalid Hexadecimal character), it means that the XML file could not have some special characters ?
If so where can I find a list of this special characters that could generate such Exceptions?
I have this problem.. I’m receiving data from a client..Using a socket connection. But
Share
Characters in the range [0x0-0x1F] are called control characters and excluding 0x9, 0xA, 0xD they cannot be used in XML.
Here’s a quote from the XML specification: