Parsing xml string to an xml document fails if the string begins with section
My first thought was that the encoding is Unicode when parsing XML from a .NET string type. It seems, though that XDocument’s parsing is quite forgiving with respect to this. The problem is actually related to the UTF8 preamble/byte order mark (BOM), which is a three-byte signature optionally present at the start of a UTF-8 … Read more