답변:
XDocument.Parse이것을 위해 사용할 수 있습니다 .
XDocument.Parse(string)대신 사용할 수 있습니다 Load(string).
이건 어때요...?
TextReader tr = new StringReader("<Root>Content</Root>");
XDocument doc = XDocument.Load(tr);
Console.WriteLine(doc);
이것은 XDocument.Load에 대한 MSDN 문서에서 가져온 것입니다.