Simple C# BlogML Parser

Posted at 03:38 a.m. on 10/02/2010 by Daniel

I promised that I would be releasing some code from Kustom Page – And here it is, straight from the guts of Kustom Page!

This little class read in an XML document, formatted to the BlogML standard, and give you an object back. The library is very very simple. You will need to do validation etc yourself (And I highly recommend you do).

Sample Usage

var blogMLImport = BlogMLObject.Parse("BlogML.xml");

            var blogMLImport = BlogMLObject.Parse("BlogML.xml");

            foreach (var post in blogMLImport.Posts)
            {
                Console.WriteLine(string.Format("Post: {0} Written by: {1} on: {2}", post.Title, post.Authors.First().Title, post.DateCreated));
            }

Download Library (8 kb)


Post Comment
Name
Email Address
Website (Optional)
Comment
- Your comment will be moderated before it shows up.