I have this XML
<?xml version="1.0" encoding="utf-8"?>
<Customers>
<Customer Id="1">
<Name>rtertr</Name>
<DOB>2010-12-12T00:00:00</DOB>
<EMail>[email protected]</EMail>
</Customer>
<Customer Id="2">
<Name>west</Name>
<DOB>0001-01-01T00:00:00</DOB>
<EMail>[email protected]</EMail>
</Customer>
<Customer Id="3">
<Name>west</Name>
<DOB>0001-01-01T00:00:00</DOB>
<EMail>[email protected]</EMail>
</Customer>
</Customers>
How to fetch all the nodes which have the name as west (<Name>west</Name>
) and store it in a collection? In our case it should return 2 nodes (there are two nodes which have Name as west. This has to be achieved using Linq to SQL.