Kent J. Chen's WebLog

a personal journal by an addictive geek

How to import BlogML file to WordPress

Posted in WordPress on January 6th, 2010 by Kent

BlogML is an open format derived from XML used mainly to store and restore the content of a blog. It was originally developed on GotDotNet community and widely supported by many .Net-based blogging tools, such as Community Server, Subtext, and dasBlog. So the chances are, if you want to move your .Net-powered blog to WordPress, BlogML is the best way to export your content out of your blog and import them into WordPress.

But the problem is WordPress doesn’t support BlogML out of the box.

image

So in order to be able to import the BlogML file exported from your old blog, you will need to do the following steps to add the BlogML import feature in WordPress.

1. Download “XPath.class.php” phpxpath open source project on sourceforge.

2. Upload the file in /wp-admin/ folder in WordPress.

3. Modify /wp-admin/admin.php file to add

require_once(’XPath.class.php’);

right after

require_once(ABSPATH . ‘wp-admin/includes/admin.php’);

4. Download “blogml.php” file and upload it to /wp-admin/import folder.

Once you are done all these, go back to import option under tools in WordPress Control Panel, and you will notice that the BlogML option now shows up.

image

Click BlogML, select the BlogML file you exported earlier and go

image

Depending on how many blog posts you have in the file, it may take a bit of time uploading all the content.

If, however, the upload process stops in the middle, you can re-initiate the import process and it’s smart enough to skip the items that had been imported earlier so no duplicates will be created.

If, however, you want to erase what you have imported and want to start all over again, you can try this bulk delete plugin to clean up all the content that had been imported.

That’s it, and good luck with the migration.

You may also like

Tags: , , ,

Disclaimer
Before you act upon this blog, please read this disclaimer.

If you find this post useful, you may consider following me on Twitter and subscribing to my RSS feed.

Free eBooks & Whitepapers

  1. Kelvin Kang says:

    Some errors in running the BlogML update script.

    I actually have no experience running PHP but I was hoping with some pointers, I could solve this issue. I followed the instructions from your entry but when I run it, I run into this error.

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7753 bytes) in /[Directory]/wp-admin/XPath.class.php on line 1887

    I’m trying to run this on Wordpress 2.9.1.

    Thanks.

  2. Kent says:

    @Kelvin,

    are you running live on your web server hosted on hosting company? If so, maybe try it on your own test machine local first. That way, you can at least eliminate the web server issue.

    Just so you know, I imported my blogML file successfully to WordPress hosted on IIS server.

    Cheers.

  3. I agree with everything that was posted in this entry, I am a loyal reader so make sure you keep updating so frequently!

  1. [...] order to make that happen, I had to go through these steps to get the job done. Even then, it’s not so perfect because a lot of posts’ categories and tags [...]

Leave a Reply