If you want to validate W3C.org simply "View Source" and then "Copy/Paste" the code into the direct input box and submit for validation.
This should work as I have also had problems before trying to get pages of other websites to validate and get an error so all I do is the above and it works fine.
Hope this helps.
:)