Вопрос

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