I want XDocument
to output the XML prolog (for example "<?xml version="1.0" encoding="UTF-8"?>
") in uppercase.
Here is how I'm currently doing it, but that doesn't seem to work:
XDocument doc = new XDocument
(
new XDeclaration("1.0", "UTF-8",""),
bla bla bla);
doc.Save(@"Z:\test.xml");
)
This code isn't working it's coming out in lower case. While doing this the iden't and formatting shouldn't be altererd. Any help would be greatly appreciated. Thanks.
*EDIT:*This question is still open, are there any more ideas to resolve this.