Example #1
0
        public static ListDef GetCamlListDef(this XElement xmlNode)
        {
            ListDef listdef = new ListDef();

            listdef.List   = xmlNode.GetCamlList();
            listdef.Fields =
                (from fieldNode in xmlNode.Element(xmlNode.GetDefaultNamespace() + "Fields")
                 .Elements(xmlNode.GetDefaultNamespace() + "Field")
                 select fieldNode.GetCamlField()).ToList <Field>();


            return(listdef);
        }
Example #2
0
        public static ListDef GetCamlListDef(this XElement xmlNode)
        {
            ListDef listdef = new ListDef();

            listdef.List = xmlNode.GetCamlList();
            listdef.Fields =
                (from fieldNode in xmlNode.Element(xmlNode.GetDefaultNamespace() + "Fields")
                     .Elements(xmlNode.GetDefaultNamespace() + "Field")
                 select fieldNode.GetCamlField()).ToList<Field>();

            return listdef;
        }