BlogML.BlogMLWriterBase.WriteStartBlog C# (CSharp) Method

WriteStartBlog() protected method

protected WriteStartBlog ( string title, ContentTypes titleContentType, string subTitle, ContentTypes subTitleContentType, string rootUrl, System.DateTime dateCreated ) : void
title string
titleContentType ContentTypes
subTitle string
subTitleContentType ContentTypes
rootUrl string
dateCreated System.DateTime
return void
        protected void WriteStartBlog(
            string title,
            ContentTypes titleContentType,
            string subTitle,
            ContentTypes subTitleContentType,
            string rootUrl,
            DateTime dateCreated)
        {
            //WriteStartElement("blog");
            Writer.WriteStartElement("blog", BlogMLNamespace); // fixes bug in Work Item 2004

            WriteAttributeStringRequired("root-url", rootUrl);
            WriteAttributeString("date-created", FormatDateTime(dateCreated));

            // Write the default namespace, identified as xmlns with no prefix
            Writer.WriteAttributeString("xmlns", null, null, "http://www.blogml.com/2006/09/BlogML");
            Writer.WriteAttributeString("xmlns", "xs", null, "http://www.w3.org/2001/XMLSchema");

            WriteContent("title", BlogMLContent.Create(title, titleContentType));
            WriteContent("sub-title", BlogMLContent.Create(subTitle, subTitleContentType));
        }

Same methods

BlogMLWriterBase::WriteStartBlog ( string title, string subTitle, string rootUrl ) : void
BlogMLWriterBase::WriteStartBlog ( string title, string subTitle, string rootUrl, System.DateTime dateCreated ) : void