BlogML Loader in C#

3/17/2009

This is similar to my RSS loader, but is really only designed to load a BlogML file (it's still a work in progress). Anyway, for those of you that have no idea what BlogML is, it's an XML format designed to export/import content from a blog. It has the ability to contain most of the information within your blog with some, specific holes. But in those cases, you can usually copy the info or simply don't need it.  All of that being said, you'll probably never need to use the format. And even if you do need to use it, most blog engines out there support it or someone has built something to help you convert from the format to something you can use. However, in my case, I have to be able to load the information from this blog into another source that doesn't support it. I could use the default code on the main site but I felt like creating one myself. Thankfully I didn't need to create an exporter as well, since BlogEngine.Net supports BlogML. As such, all I had to do was to create a loader. There's a bit too much code to place here, but if you go to my utility library's repository, here, you can get the code for it (or just download my utility library as you'll get a large amount of extra code along with the BlogML code).

As I said before, it's still a work in progress as I still need to add functionality for exporting it back out, some of the fields that I didn't really need, etc. Hopefully this code though will help someone out. So give it a try, leave feedback, and happy coding.



Comments