I have the below XML and I load into a XElement in VB.NET and I can get the value of C easily with the below statement but when I try in C#, I get an error with the .Value . How can I access the inner text of C with ease? I can't seem to work out how to access it.
<A>
<B>
<C>Message</C>
</B>
</A>
strMsg = oX.Elements("A").Elements("B").Elements("C").Value