Used to specify the complete List View XML for a view of data from lists retrieved by the web part.
If you want to include URL filterable elements, encase the name of the parameter you want to use with a [%...%]. ([%SearchText%] will now expect ?SearchText to be used on the page.) If you want to include Cookie Name filterable elements, encase the name of the parameter you want to use with a [:...:]. ([:Company:] will now expect cookies to be used on the page.)
To select certain fields, add the <FieldRef> elements in the <ViewFields> section. Note that you must reference the column’s internal name.
Example:
<View>
<Query>
<OrderBy>
<FieldRef Name='ID'/>
</OrderBy>
<Where>
<Or>
<Geq>
<FieldRef Name='Field1'/>
<Value Type='Number'>1500</Value>
</Geq>
<Leq>
<FieldRef Name='Field2'/>
<Value Type='Number'>500</Value>
</Leq>
</Or>
</Where>
</Query>
<ViewFields>
<FieldRef Name='Title'/>
<FieldRef Name='Field1'/>
<FieldRef Name='Field2'/>
<FieldRef Name='Field3'/>
<FieldRef Name='Field4'/>
</ViewFields>
<RowLimit>100</RowLimit>
</View>