I can retrieve the xml data of a view which is stored in the [WSS_Content].[dbo].[AllWebParts]
table.
example of decompressed content of a view:
<root>
<ViewFields>
<FieldRef Name="DocIcon" />
<FieldRef Name="LinkFilename" />
<FieldRef Name="Modified" />
<FieldRef Name="Editor" />
</ViewFields>
<Query />
<RowLimit Paged="FALSE">30</RowLimit>
</root>
Is there any way to create a view using this xml ? Usually I create a view by following code:
var list = Site.Lists.GetByTitle("Test");
var view = new ViewCreationInformation();
view.Title = "NewVIEW";
list.Views.Add(view);