Log in

View Full Version : Resolved XML parsing error (per W3C validator site)



catwoman2970
05-07-2009, 06:36 PM
Hi,

When I try to validate this page -

http://www.topfloorstudio.com/index.php?/contact-topfloorstudio.html

I get two errors and two warnings -

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.topfloorstudio.com%2Findex.php%3F%2Fcontact-topfloorstudio.html&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.654

Since I'm not a programmer, I'm not sure where the problem lies. Any thoughts? Thanks so much.

Snookerman
05-07-2009, 08:47 PM
Replace the ampersands (&) with this:

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

Good luck!

catwoman2970
05-07-2009, 11:33 PM
Thanks for your reply, but doesn't the javascript that uses the && in question need both of those as they are?

Snookerman
05-08-2009, 05:50 AM
It will work in the same way with the entity. What I recommend though, is to make your JavaScript external.

catwoman2970
05-08-2009, 04:08 PM
Excellent - I made an external JS file and it validates. Thank you so much.

Snookerman
05-08-2009, 04:25 PM
You're welcome, glad to help.

Happy coding!