I have the following XML loaded in an XMLElement like below:
<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>
When I get the inner text:
string nameChildren = node.SelectSingleNode("/related_id/Item/keyed_name").InnerText;
The string is empty!
What am I doing wrong?