using LINQ to XML, this is a sample of my XML
Change this line:
where feed.Attribute("Code").Equals("456")
To:
where feed.Attribute("Code").Value.Equals("456")
Otherwise you're comparing the attribute as object instead of the attribute's value.