I have the following XDocument:
<SomeDoc Id="73" Protocol="rahrah" xmlns="http://schemas.company.com/rah/rah2/2005/">
<Prop1>11111</Prop1>
<Prop2>77777</Prop2>
<Prop3>88888</Prop3>
</SomeDoc>
And I want to extract the value in Prop1.
I use the following code:
var prop1 = xml.Element("Prop1");
But prop1 is being set to null. Am I trying to extract the element correctly?