'm having a problem figuring out the correct select statement here
I have the following XML
<configuration>
<other sections>
<runtime>
<Binding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing Path="some path string" />
</Binding>
<Concurrent enabled="false" />
</runtime>
<other sections>
</configuration>
Im trying to do a select where I retrieve the Path string value
So far I have this
XDocument xdoc = XDocument.Load(XmlfilePath);
var query = (from c in xdoc.Descendants("probing")
where c.Attribute("Path") != null
select c.Attribute("Path").Value).FirstOrDefault();
But this doesn't work, query is null