XDocument.Load throws an exception when using an XML file with version 1.1 instead of 1.0:
Unhandled Exception: System.Xml.XmlException: Version number '1.1' is invalid. Line 1, position 16.
Any clean solutions to resolve the error (without regex) and load the document?
Initial reaction, just to confirm that I can reproduce this:
Results in this exception:
It’s still failing as of .NET 4.6.