次のxmlを次のように考えてみましょう
<?xml version="1.0" encoding="UTF-8" ?>
<response success="true">
<struct>value</struct>
</response>
解析中に次のエラーが発生します
Root element is missing.
私が使用したコードは
foreach (XElement carselement in xdoc.Descendants("response"))
{
String value= carselement.Element("struct").Value;
}
あなたの解決策を待っています