IPublishedContent for first child node

Hi everyone,

I have a working sitemap, which starts on the root node, but I would need to start it on the first child node.

This code gives the root node, and I would like to change siteHomePage:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{Layout = null;
    Response.ContentType = "text/xml";
    string blacklistedDocumentTypeList = Model.Content.GetPropertyValue<string>("blacklistedDocumentTypes");
    string[] blackListedDocumentTypes = (!String.IsNullOrEmpty(blacklistedDocumentTypeList)) ? blacklistedDocumentTypeList.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries) : new string[] { };
    int maxSiteMapDepth = Model.Content.HasValue("maxSiteMapDepth") ? Model.Content.GetPropertyValue<int>("maxSiteMapDepth") : int.MaxValue;
    IPublishedContent siteHomePage = Model.Content.Site();
}

How would I need to change this to define siteHomePage to be the first child node of documenttype “master”?

Thanks!
Simeon


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/113111-ipublishedcontent-for-first-child-node