Ejemplo n.º 1
0
        public static xElements Elements(this xContainer container)
        {
            if (container == null)
            {
                return(sEmptyElements);
            }
            var elements = container.XContainer.Elements();

            return(new xElements(elements.Select(i => new xElement(container._Document, container as xElement, i))));
        }
Ejemplo n.º 2
0
        public static xElements Elements(this xContainer container, string name)
        {
            aError.CheckNull(name, "name");
            if (container == null)
            {
                return(sEmptyElements);
            }
            var elements = container.XContainer.Elements(name);

            return(new xElements(elements.Select(i => new xElement(container._Document, container as xElement, i))));
        }
Ejemplo n.º 3
0
        // elements
        public static xElement Element(this xContainer container, string name)
        {
            aError.CheckNull(name, "name");
            if (container == null)
            {
                return(null);
            }
            var child = container.XContainer.Element(name);

            if (child == null)
            {
                return(null);
            }
            return(new xElement(container._Document, container as xElement, child));
        }