noah,
I'm not generating the mindmap dynamically. I used the export option in mindmanager to do that.
mindmanager is indeed a win32 app. It does have an API in which you can code against. While they only provide a COM interface; someone managed to code against a mindmap using an OLE bridge. Read
http://www.mindjet.com/ubb/Forum16/HTML/000065.html