Is there any way to have an XDocument print the xml version when using the ToString method? Have it output something like this:
Just type this
var doc = new XDocument ( new XDeclaration ("1.0", "utf-16", "no"), new XElement ("blah", "blih") );
And you get
blih