Calender
<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
Posted by: Jason | Created on: 15/04/2009, 23:51

Handy function for properly formatting the whitespace of an XML stream as a string … took me a while to figure this out as most examples show how to format it to a file.

private static string FormatXML(string xml)
{
    var doc = new XmlDocument();
    doc.LoadXml(xml);

    var textWriter = new StringWriter();
    var xmlTextWriter = new XmlTextWriter(textWriter) { Formatting = Formatting.Indented };

    doc.Save(xmlTextWriter);

    return textWriter.ToString();
}

Posted by: Admin | Created on: 15/04/2009, 05:59

Ok, I've been playing around with BlogEngine.NET for several days now (with the sourcecode on my local machine that is).

In roughly 6 hours  I've managed to figure out how to:

  • Implement a Theme and customize it.
  • Impelment LightBox functionality
  • Pull my webalbums from Picasa (into lightbox :)
  • Edit the source to only show a single image for a lightbox webalbum in a post
  • Implement a 3rd party extension to give me security around only certains posts that I decide I want people to have to login to view.
All that said and done, I'm absolutely blown away how easy this package is to crank up and "tweek."  It's probably the best experience I've had yet with an open source project. 

Jason