0
다음 코드를 시도했지만 올바르게 작동하지 않았습니다.XElement를 사용하여 악센트 부호가있는 문자로 파일을로드하지 못했습니다.
string file = @"C:\Program.xml";
XElement root = XElement.Parse(File.ReadAllText(file).Replace("\"", "'"));
XML 파일의 예 : 난 당신이 조금 전부 그
Xdocument xdoc=Xdocument.Load(filepath);
혼란이라고 생각
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="test" start="2014-04-04T15:54:09.728Z">
<upload>
<filename value="D:\ftp\test2.TXT" />
<destination value="/in/test2.TXT" />
<result success="true" />
</upload>
<touch>
<filename value="/in/test2.TXT" />
<modification value="2014-03-27T12:45:20.000Z" />
<result success="false" />
</touch>
</session>
내가 더 치료
0 : 네임 스페이스의 모든 노드가 가지고있는 원래의 문서 - 당신이 좋아하는 네임 스페이스를 사용하는 예를 보여 주어야한다 http://stackoverflow.com/questions/4985974/xelement-namespaces-howtoto –