Importing BlogML into WordPress from Subtext

I used the BlogML importer plugin from to import my BlogML from Subtext. However the output from Subtext included Base64 encoded content so I wrote a little C# application to convert the Base64 decode the content before importing it.

The source code is below, the usual caveats about if it blows up your computer don’t blame me etc. apply.

using System;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace UnBase64BlogML
    class Program
        static void Main(string[] args)
            XDocument doc = XDocument.Load(@"blogml-b64.xml");
            XNamespace blogML = "";

            var query = doc.Descendants(blogML + "content")
                .Where(node => (string) node.Attribute("type") == "base64");
            foreach(var item in query)
                string content = Encoding.UTF8.GetString(Convert.FromBase64String(item.Value));



            Console.WriteLine("Press a key to continue");

Moved blogging engine….again

Ok I bit the bullet and moved to WordPress. I’ve been avoiding it because it’s the main one people use and I like being a little different. In the end though the support for 3rd party publishing apps, the number of plugins and themes etc meant that I’ve done it at last.

All of the posts and comments + RSS feeds etc should have now been moved across but let me know if you notice any problems.

Moved blogging engine

It’s been a little while since I last blogged. Well I’ve decided to change the blogging engine that I use from Graffiti to Subtext. Why? Well no real reason other than I’m not great at web design and there are more themes available for Subtext that I like. I reserve the right to move back though!

I did have some issues moving posts since Graffiti doesn’t have a BlogML export function, only import. Fortunately I was able to find a little utility on Curt’s blog at that allowed me to export by blog and comments although it did lose some of the names against the comments, sorry about that those that posted.