Accessing Umbraco.TypedContentAtRoot() in another assembly
<p>I'm trying to generate an xml sitemap for <strong>published Umbraco content</strong>. Ideally I'd like to access UmbracoHelper.TypedContentAtRoot() or something similar that gives easy access to published items. I need to access it outside the web solution, inside a supporting assembly where I'm generating xml sitemaps and sitemap index for dynamic content outside the direct control of Umbraco.</p>

<p>Any ideas about the easiest way to go about this? I've tried referencing various Umbraco assemblies and digging into what's readily available but haven't found anything immediately useful yet.</p>

<p>I have stumbled across</p>

<pre><code>UmbracoContext.Current.Application.Services.ContentService.GetRootContent()
</code></pre>

<p>but this seems to require a much deeper understanding about how Umbraco content works under the covers in order to drill down to extract published content for me to index.</p>

<p>Can anyone point me in the right direction? Thanks in advance!</p>