sitemap

VBdotnet2005
VBdotnet2005 used Ask the Experts™
on
How can I add another tree(not sure if that the correct term) to "Account dpt"?
sample
Home
      department
            Account dpt
                  billing
                  adjustment
                  close out date
              Representative
                  etc
            Sales
                  etc




<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <siteMapNode url="/" title="Home"  description="Home">
    <siteMapNode title="Department"  description="">
      <siteMapNode url="" title="Account dpt"  description="">
          <siteMapNode url="~\test\test1.aspx" title="billing" description=""/>
          <siteMapNode url="~\test\test2.aspx" title="adjustment" description=""/>
        <siteMapNode url="~\test\test3.aspx" title="close Out date" description=""/>
      <siteMapNode url="" title="Representative dpt"  description="">
       
       
       

      </siteMapNode>
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Just looks like you are not closing the element tags correctly.
A shorthand method is to close a tag using /> without the slash, a full closing tag is required:
 
<?xml version="1.0" encoding="utf-8"?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
  <siteMapNode url="/" title="Home" description="Home">
    <siteMapNode title="Department" description="">
      <siteMapNode url="" title="Account dpt" description="">
        <siteMapNode url="~\test\test1.aspx" title="billing" description="" />
        <siteMapNode url="~\test\test2.aspx" title="adjustment" description="" />
        <siteMapNode url="~\test\test3.aspx" title="close Out date" description="" />
      </siteMapNode>
      <siteMapNode url="" title="Representative dpt" description="">
        <!-- Put sub nodes inside. -->
      </siteMapNode>
      <siteMapNode url="" title="Sales dpt" description="">
        <!-- Put sub nodes inside. -->
      </siteMapNode>
    </siteMapNode>
  </siteMapNode>
</siteMap>

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial