Krangewarefahrer put me on the right track with this. For me, it was the Quick Contact plugin (http://quickcontact.squarecompass.com/documentation/installation/) that was causing the error. Disabling it fixed the problem. So my suggestion is try to disable any contact forms to rebuild the sitemap, then enable them again if you need them.