EDN Admin
Well-known member
Im saving a xml file using XmlDocument and StreamWriter.
When I inspect the xmlDocument.innerXml, it shows me the encoding="UTF-8", however after saving to a file encoding is getting converted to lower case "utf-8". Is there any way to preserve the case of encoding as it is. Preamble is created by specifying the
upper case "UTF-8".
If its not possible with StreamWriter are there any other ways to save/write an XmlDocument without BOM?
Thanks in Advance
Sandy
View the full article
When I inspect the xmlDocument.innerXml, it shows me the encoding="UTF-8", however after saving to a file encoding is getting converted to lower case "utf-8". Is there any way to preserve the case of encoding as it is. Preamble is created by specifying the
upper case "UTF-8".
If its not possible with StreamWriter are there any other ways to save/write an XmlDocument without BOM?
Thanks in Advance
Sandy
View the full article