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); }
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; }