Results 1 to 6 of 6

Thread: XML parsing error (per W3C validator site)

  1. #1
    Join Date
    Jun 2008
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default XML parsing error (per W3C validator site)

    Hi,

    When I try to validate this page -

    http://www.topfloorstudio.com/index....oorstudio.html

    I get two errors and two warnings -

    http://validator.w3.org/check?uri=ht...idator%2F1.654

    Since I'm not a programmer, I'm not sure where the problem lies. Any thoughts? Thanks so much.
    Last edited by Snookerman; 05-08-2009 at 04:25 PM. Reason: added “Resolved” prefix

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Replace the ampersands (&) with this:
    Code:
    &
    Also, I recommend you read this article: http://www.webdevout.net/articles/beware-of-xhtml

    Good luck!

  3. #3
    Join Date
    Jun 2008
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your reply, but doesn't the javascript that uses the && in question need both of those as they are?

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    It will work in the same way with the entity. What I recommend though, is to make your JavaScript external.

  5. The Following User Says Thank You to Snookerman For This Useful Post:

    catwoman2970 (05-08-2009)

  6. #5
    Join Date
    Jun 2008
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Excellent - I made an external JS file and it validates. Thank you so much.

  7. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help.

    Happy coding!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •