Example #1
0
        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>());
        }
Example #2
0
        public static IEnumerable <XAttribute> GetXAttributes(this XContainer element, params string[] names)
        {
            string name;

            element = element.GetRootXElement(names, out name);

            return(((XElement)element).Attributes(name));
        }
Example #3
0
        public static IEnumerable <XElement> GetXElements(this XContainer element, params string[] names)
        {
            string name;

            element = element.GetRootXElement(names, out name);

            return(element.Elements(name));
        }