Saving XML file from one location to another location using XML DOCUMENT
问题 While saving the existing XML to new location, entities escaped from the content and replaced with Question Mark See the snaps below entity ‐ (- as Hex) present while reading but its replaced with question mark after saving to another location. While Reading as Inner XML While Reading as Inner Text After Saving XML File EDIT 1 Below is my code string path = @"C:\work\myxml.XML"; string pathnew = @"C:\work\myxml_new.XML"; //GetFileEncoding(path); XmlDocument document = new XmlDocument();