Xml – Disable XML validation in Eclipse

eclipsexml

My Eclipse validates XML files every time I save a file and it takes a while to validate them.
The project is created using gwt-maven-plugin.

The XML files are not under any Source folder build path in Eclipse, they are auto generated by SmartGWT under src/main/webapp/[GwtModule]>/sc

Also all these XML files are marked with the error "Content is not allowed in prolog" and every time I run the project I have to confirm that I want to run the project with errors though there are none (and everything works fine).

I tried Suspending all Validators under Eclipse -> Window -> Preferences -> Validation but to no avail.

Any idea how I can stop Eclipse from annoying me every time?

Best Answer

You have two options:

  1. Configure Workspace Settings (disable the validation for the current workspace): Go to Window > Preferences > Validation and uncheck the manual and build for: XML Schema Validator, XML Validator

  2. Check enable project specific settings (disable the validation for this project): Right-click on the project, select Properties > Validation and uncheck the manual and build for: XML Schema Validator, XML Validator

Right-click on the project and select Validate to make the errors disappear.