Question

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.

Was it helpful?

Solution

Just use:

var element = XElement.Parse(queryText);

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top