Some webparts can’t be exported by the UI to get the XML representation of it.
Listview webparts are one of them. To get the XML anyway there are three options to do so:
- Use the exportwp page directly
- Enable the Export functionality
The easiest way to find it is to search for ‘MSOMenu_Export’ in the HTML of the page.
Get the webpartid from the developer tools:
And format the url:
<url of the web where the page is stored>/_vti_bin/exportwp.aspx?pageurl=<absolute url of the page where the webpart is placed on>&guidstring=<id of the webpart>
The last and faremost the easiest way is to enable the Export functionality of the webpart. Not in the webpart properties, but in the developer tool of the browser:
Set this property to true and the Export menu option is available and working.
There are several ways to export a webpart when the Export option isn’t available in the menu of the webpart. To enable this is the faremost easiest option when it is available. Otherwise the user of the exportwp page is a close second.