I have an xml mapping file that looks something like this
as I am pushed for time I will use a 2 stage process
But would be interested to hear if this is possible in one query
var matchingModelXml = from c in mappings.Descendants("model")
where (string)c.Attribute("name") == "modelY"
select c;
var mappingAttributes = from b in matchingModelXml.Descendants("mapping")
where (string)b.Attribute("colour") == "White"
select b.Attributes();