Hello SharePoint developpers !
I can't deeply understand the difference between Query and ViewXml properties in the SPQuery object. In the msdn documentation, it's written :
- Query : Gets or sets the inner XML used in the query.
- ViewXml : Gets or sets the XML schema that defines the view.
it seems to me that ViewXml is appropriate to filter the fields you want to retrieve... I'm not sure.
So what's the difference ? in which situations should we choose the first over the second ? How SharePoint is treating those queries .. Mystery remains for me so if someone could throw some light on it ? thank you...