I have this code :
/*string theXml =
@\"
I have several namespaces listed at the top of an XML document, I don't really care about which elements are from which namespace. I just want to get the elements by their names. I've written this extension method.
///
/// A list of XElement descendent elements with the supplied local name (ignoring any namespace), or null if the element is not found.
///
public static IEnumerable FindDescendants(this XElement likeThis, string elementName) {
var result = likeThis.Descendants().Where(ele=>ele.Name.LocalName==elementName);
return result;
}