Your error message is strange, because as Rob Kennedy says, that message is usually an summary message that's displayed after an number of other, more specific messages. I've NEVER seen it all by itself. Also the msxml.pas file is provided by Delphi and I've never seen a Delphi-provided unit that doesn't compile. (And I did make a test on my Delphi 2010, msxml.pas does compile fine). Ignore the messages asking you to remove the .pas file from your search path or from your project, that can't possibly help because the .pas file itself is ok and compiles just fine. Your problem is deeper.
Here's what I suspect: Some of your Delphi-provided DCU files somehow became corrupted. It might be the actual msxml.dcu file, but it might as well be a DCU file required by msxml.dcu!
Debugging steps:
- Add the msxml.pas file to your project and "build" (not compile). If not fixed, and you get the same error message, move on...
- Go into the msxml.pas file, look at the "uses" clauses and add all files to your project (move your over the name of the unit and hit CTRL + Enter and once the file opened hit the "add to project button"). Rebuild. This should be enough! If you still get similar nonsense error messages then move on:
- Try the same on an new project. If it works then you know it's something related to your other project's settings (search path most likeley, possibly some defined symbols). If it doesn't work on the new project, even after adding the whole bunch of files tot he project, it's probably time to uninstall and reisntall Delphi. I'm only suggesting an uninstall/reinstall because I'm 95% sure it's a file corruption issue.