I want XDocument to output the XML prolog (for example \"\") in uppercase.
XDocument
Here is how I\'m cur
Save to a custom stream that modify the header and then pass it on to a FileStream.