We are considering migrating from one system to SharePoint. Assuming I can correctly read the existing pages, how would I automate the addition to our SharePoint system ?
I use the following block of Powershell to update an existing wiki page. The tricky bit was the pre-formatted block of 'boilerplate' xml in the "ows_WikiField" field that wraps the page content. If the content wasn't wrapped properly in this XML, it wouldn't work correctly.
As stated, this block of code updates an existing page. To create a new page would just involve initializing a new item and adding it to the list. You could then set the content of the page as demonstrated below. If you're trying to do this in .Net, I'm sure the objects below should exist in the SharePoint .Net libraries.