I have a bunch of Velocity template files in a Visual Studio 2008 project, the problem is that despite the fact that the extension is .vm instead of .xml<
You can normally disable it by not opening it into the xml editor; the errors don't normally stop a build - they just look like they do.
Right click -> Open With... Source (Text) Editor (or HTML if you prefer)
(and set as default).