Linq: read node innertext
- by nabo
i have a xml document like this:
<ns:a xmlns:ns="http://NS1">
<ns:b>
<c xmlns="http://differentNS"> c_text </c>
<x xmlns="http://differentNS"> Wanted </x>
<d xmlns="http://differentNS"> d_text </d>
</ns:b>
</ns:a>
Now i want to use linq to read the element's "x" inner text.