Having made the recent decision to no longer host my own server/weblog, one of the conditions of that transition was to preserve all of my existing weblog entries. That is one of the reasons why I chose to host this at TypePad - the ability to perform bulk imports of weblog entries. I have been using the Serendipity weblog server software for several years, accumulating about 250 entries. One of the admin features of s9y is the ability to export all entries as an RSS2.0 feed.
With that XML file saved to my local drive, I then had to go about converting that content into the MovableType Import Format. I figured there must be decent Java library for parsing RSS XML feed documents, which I could then use to output an MT-import compatible file. After a bit of searching, I came across the Rome project that looked like it had all the features I might need (download v0.9 from here). You'll also need the 'content' plugin (which you can download here) and the dependent JDOM library (download from here).
Once you have those pieces downloaded, you can dowload my Java implementation named RSS2MTImport.java (source: Download RSS2MTImport.java. If you just want a binary build, you can also download that here: Download rss2mt.jar. To use the Jar file:
java -jar rss2mt.jar http://url/to/rss2feed.xml /path/to/output/mt.export
Of course, if you have the Serendipity RSS XML file saved locally, you can refer to it using a file:/// URL.





