On SharePoint 2010, I have a site template solution created by saving a site as a template. Recently I modified the template in Visual Studio - I needed to change the markup for several XsltListViewWebParts (changed the BaseViewId from 0 to 1) on the default.aspx page. I found that the markup that I needed to change actually lived in the elements.xml file associated with the default.aspx file.
I would like to make the same change to hundreds of sites that have already been created from this site template. I have figured out how to get at the default.aspx file from the SPWeb.Files collection, but I cannot figure out how to get at the elements.xml file.
Any help is appreciated!