Loading xml with encoding UTF 16 using XDocument

后端 未结 3 1943
情话喂你
情话喂你 2021-02-05 00:13

I am trying to read the xml document using XDocument method . but i am getting an error when xml has


3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 01:00

    I tried , and found another way of doing it !!

    XDocument xdoc = XDocument.Parse(System.IO.File.ReadAllLines(path));
    

提交回复
热议问题