Domanda

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.

È stato utile?

Soluzione

Just use:

var element = XElement.Parse(queryText);

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top