I am trying to filter the xmldata using Linq to Xml,the problem is i am not able to get the elements using XElement.Elements(Xname) method but when working with XElement.Desendents(Xname) method it works fine but displays all the element which i don`t want. What i want it it should displays all the element and attributes,whose element and attribute name is passed in the two textboxes. I am trying to filter the xmldata using Linq to