snipt

Ctrl+h for KB shortcuts

Text only

ASP.NET MVC sitemap for breadcrumb - wrong

<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-3.0" enableLocalization="true">
    <mvcSiteMapNode title="Home" controller="Home" action="Index">
        <mvcSiteMapNode title="News" controller="News" action="Index">
            <mvcSiteMapNode title="Sports News" controller="News" action="Sports">
                <mvcSiteMapNode title="All" controller="News" action="Sports"/>
                <mvcSiteMapNode title="Football" controller="News" action="Football"/>
            </mvcSiteMapNode>
        </mvcSiteMapNode>
        <mvcSiteMapNode title="About" controller="About" action="Index"/>
    </mvcSiteMapNode>
</mvcSiteMap>
https://snipt.net/embed/256031e9528bbde26ed1c4fa21cdc503/
/raw/256031e9528bbde26ed1c4fa21cdc503/
256031e9528bbde26ed1c4fa21cdc503
text
Text only
12
2019-07-16T09:59:35
True
False
False
Nov 28, 2012 at 06:56 AM
/api/public/snipt/50885/
aspnet-mvc-sitemap-for-breadcrumb-wrong
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1"> 1</a> <a href="#L-2"> 2</a> <a href="#L-3"> 3</a> <a href="#L-4"> 4</a> <a href="#L-5"> 5</a> <a href="#L-6"> 6</a> <a href="#L-7"> 7</a> <a href="#L-8"> 8</a> <a href="#L-9"> 9</a> <a href="#L-10">10</a> <a href="#L-11">11</a> <a href="#L-12">12</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt; </span><span id="L-2"><a name="L-2"></a>&lt;mvcSiteMap xmlns=&quot;http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-3.0&quot; enableLocalization=&quot;true&quot;&gt; </span><span id="L-3"><a name="L-3"></a> &lt;mvcSiteMapNode title=&quot;Home&quot; controller=&quot;Home&quot; action=&quot;Index&quot;&gt; </span><span id="L-4"><a name="L-4"></a> &lt;mvcSiteMapNode title=&quot;News&quot; controller=&quot;News&quot; action=&quot;Index&quot;&gt; </span><span id="L-5"><a name="L-5"></a> &lt;mvcSiteMapNode title=&quot;Sports News&quot; controller=&quot;News&quot; action=&quot;Sports&quot;&gt; </span><span id="L-6"><a name="L-6"></a> &lt;mvcSiteMapNode title=&quot;All&quot; controller=&quot;News&quot; action=&quot;Sports&quot;/&gt; </span><span id="L-7"><a name="L-7"></a> &lt;mvcSiteMapNode title=&quot;Football&quot; controller=&quot;News&quot; action=&quot;Football&quot;/&gt; </span><span id="L-8"><a name="L-8"></a> &lt;/mvcSiteMapNode&gt; </span><span id="L-9"><a name="L-9"></a> &lt;/mvcSiteMapNode&gt; </span><span id="L-10"><a name="L-10"></a> &lt;mvcSiteMapNode title=&quot;About&quot; controller=&quot;About&quot; action=&quot;Index&quot;/&gt; </span><span id="L-11"><a name="L-11"></a> &lt;/mvcSiteMapNode&gt; </span><span id="L-12"><a name="L-12"></a>&lt;/mvcSiteMap&gt; </span></pre></div> </td></tr></table>
mvc, sitemap