string queryText = string.Format(@"<Where>
                <And>    
                <Neq><FieldRef Name='EventType' /><Value Type='recurrence'>3</Value> </Neq> 

                <And>  
                    <Eq><FieldRef Name='fRecurrence'/><Value Type='Recurrance'>True</Value></Eq>
                    <And>  
                      <Geq><FieldRef Name='EndDate' /><Value Type='DateTime'>{0}</Value></Geq>
                      <Leq><FieldRef Name='StartDate' /><Value Type='DateTime'>{0}</Value></Leq> 
                    </And>     
                </And>

            </And>
           </Where> ", new DateTime(selectedDate.Year, selectedDate.Month, selectedDate.Day).ToString("yyyy-MM-dd"));

This is ndQuery of type XmlNode used in sharepoint to filter GetListItem in Windows. Want to do the same in WP8 but it doesnot support Xml, which use XElement so please convert this xml to XElement. Thanks in advance.

有帮助吗?

解决方案

Just use:

var element = XElement.Parse(queryText);

其他提示

My problem got solved. thanks of all valuable replies. The above error occur due to insufficient data in sharepoint.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top