Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML delimiter question 1

Status
Not open for further replies.

Blueie

Technical User
May 12, 2012
72
0
0
GB
Hello

I have validated my XML file and continue to get the following error with this: </siteMapNode> The validator (I have tried a couple) informs me that 'The end-tag for element type "siteMap" must end with a '>' delimiter.

Haven't I inserted a '>' delimiter? This is the code:

XML:
<?xml version="1.0"?>

<siteMap>
  <siteMapNode title="Home" description="Home" url="~/index.aspx" />
    <siteMapNode title="Register" description="Register"
      url="~/Register.aspx" />
<siteMapNode title="Success" description="Successfully registered" 
          url="~/success.aspx" />
          </siteMapNode>         
      <siteMapNode title="Login" description="Login"
        url="~/Login.aspx" />
      <siteMapNode title="Upload" description="Upload your files"
        url="~/upload.aspx" />
    </siteMapNode>
    <siteMapNode title="My Work" description="My Work"
        url="~/mywork.aspx" />
        <siteMapNode title="Contact me" description="Contact me"
          url="~/Contact.aspx" />
        <siteMapNode title="Thank you" description="Thank you for your message" 
          url="~/thank.aspx" /> 
 </siteMapNode>
<siteMapNode title="Error" description="Website error"
          url="~/error.aspx" />
</siteMapNode>
 </siteMapNode>  
 </siteMap>

The success.aspx file is dependent on the Register.aspx file - it will only be seen by a new user who has successfully registered.

The upload.aspx file is dependent on Login.aspx because you cannot upload files without first logging in, and the thank.aspx file only appears after submitting the contact form.

Thanks for reading!
 
You have 'self-closing tags' mixed in with closing tags. Self-closing 'tags' are only valid for empty elements and should NOT have a close tag as well.





Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Thanks for that, Chris. Resolved now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top