将下面的 XML 内容复制到 Web.sitemap 文件中,重写默认内容。
<
siteMap
>
< siteMapNode title = " 主页 " description = " Home " url = " ~/home.aspx " >
< siteMapNode title = " 产品 " description = " Our products "
url = " ~/Products.aspx " >
< siteMapNode title = " 硬件 "
description = " Hardware we offer "
url = " ~/Hardware.aspx " />
< siteMapNode title = " 软件 "
description = " Software for sale "
url = " ~/Software.aspx " />
</ siteMapNode >
< siteMapNode title = " 服务 " description = " Services we offer "
url = " ~/Services.aspx " >
< siteMapNode title = " 培训 " description = " Training "
url = " ~/Training.aspx " />
< siteMapNode title = " 咨询 " description = " Consulting "
url = " ~/Consulting.aspx " />
< siteMapNode title = " 支持 " description = " Support "
url = " ~/Support.aspx " />
</ siteMapNode >
</ siteMapNode >
</ siteMap >
< siteMapNode title = " 主页 " description = " Home " url = " ~/home.aspx " >
< siteMapNode title = " 产品 " description = " Our products "
url = " ~/Products.aspx " >
< siteMapNode title = " 硬件 "
description = " Hardware we offer "
url = " ~/Hardware.aspx " />
< siteMapNode title = " 软件 "
description = " Software for sale "
url = " ~/Software.aspx " />
</ siteMapNode >
< siteMapNode title = " 服务 " description = " Services we offer "
url = " ~/Services.aspx " >
< siteMapNode title = " 培训 " description = " Training "
url = " ~/Training.aspx " />
< siteMapNode title = " 咨询 " description = " Consulting "
url = " ~/Consulting.aspx " />
< siteMapNode title = " 支持 " description = " Support "
url = " ~/Support.aspx " />
</ siteMapNode >
</ siteMapNode >
</ siteMap >
该示例 .xml 文件中定义的页的 URL 是非限定的。这意味着将所有页的 URL 视为相对于应用程序根节点。也可以为特定页指定任何 URL -- ( 注)在站点地图中定义的逻辑结构不必对应于在文件夹中页的物理布局。