public static IEnumerable <XElement> GetXElementsIfExistElement(this XContainer element, params string[] names) { string name; element = element.GetRootXElement(names, out name); return(element != null?element.Elements(name) : new List <XElement>()); }
public static IEnumerable <XAttribute> GetXAttributes(this XContainer element, params string[] names) { string name; element = element.GetRootXElement(names, out name); return(((XElement)element).Attributes(name)); }
public static IEnumerable <XElement> GetXElements(this XContainer element, params string[] names) { string name; element = element.GetRootXElement(names, out name); return(element.Elements(name)); }