I'm not sure what I am missing here.. I have an XML file which has several nodes.. in particular I am trying to get the LocalName of the node which is descendant of "Requirement". I've tried every combination I can think of and can't get it to let me access the node. When I check for if Requirement has elements, I get true... when I check to see if it has descendents - I get false.
Here is the XML
<Requirement type="Level"><gt>11</gt></Requirement>
Edit @ Jon - My question is how do I access the "GT" node? (It can change to be other items, so I do not want to reference it directly).
Here is my code so far:
public override void LoadXml(XElement element)
{
Value = element.Value;
EquateType = element.LastNode.Parent.Name.LocalName;
}
EquateType is the field I am trying to modify... LastNode actually returns an error, but as I said above I was navigating in the Immediate window and cannot seem to find the path that I need. Thanks in advance!