I retrieve xml with several nodes this type
<pickUpPoint puCost="0" code4county="UK*LINCS" puKey="C021P008">
Louth
</pickUpPoint>
and I've got a string formed from the puKey and the actual value of the node (ie C021P008Louth). What I'm trying to achieve is to search in the whole document for the actual node, but I'm not able for the moment to do something like this
xDataForLINQ.Descendants("pickUpPoint")
.Where(pp =>(tourPickUp.Contains(pp.Attribute("puKey").Value)) = true)
.FirstOrDefault();
and then check if the value matches the second part of my string (using contains as well).