public void Write(XmlWriter writer) { Writer = writer; //Write the XML delcaration. writer.WriteStartDocument(); try { InternalWriteBlog(); } finally { Writer = null; } }