you have to first modify the default Eclipse configuration to avoid XML cosmetic errors:

  • Configure XML Validation to Avoid Cosmetic Errors
  • Navigate to: Window->Preferences->XML->XML Files->Validation
  • Uncheck "Honour all XML schema locations"
原文地址:https://www.cnblogs.com/gangzi2013/p/6489139.html