string xml = @"<books>
<book> </book>
<book> <title> 123</title> </book>
</books>";
dynamic aa = new DynamicXml(xml);
Console.WriteLine(aa.book[1].title.Value);
原文:https://www.cnblogs.com/anjun-xy/p/12853163.html