Simple C# BlogML Parser
Posted 10/02/2010 4:38:18 p.m. by Daniel in Development
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)