我在 XMLElement 中加载了以下 XML,如下所示:
<related_id>
<Item>
<classification>Component</classification>
<id></id>
<keyed_name>glass</keyed_name> <!-- I want to get this InnerText -->
</Item>
</related_id>
<source_id>968C45A47942454DA9B34245A9F72A8C</source_id>
<itemtype>5E9C5A12CC58413A8670CF4003C57848</itemtype>
当我得到内部文本时:
string nameChildren = node.SelectSingleNode("/related_id/Item/keyed_name").InnerText;
字符串为空!
我究竟做错了什么?