I have an xml (called xdoc) file like the following:
<Root>
<ItemContainer>
<Item>
<Item>
<Item>
<Item>
</ItemContainer>
</Root>
if i do the following
XElement xel = xdoc.Element("ItemContainer");
As far as i understand, i should get back a reference to to my ItemContainer node element, but i keep getting back null. Ive read the msdn docs for this
"Gets the first (in document order) child element with the specified XName. "
as far as i can see, ItemContainer is the first child element with the specified name. What am i missing?