一.XML
Properties > Validation
you have two options:
1- Configure Workspace Settings (disable the validation for the current workspace)
uncheck the manual and build for: XML Schema Validator, XML Validator
2- Check enable project specific settings (disable the validation for this project)
uncheck the manual and build for: XML Schema Validator, XML Validator
3- Right-click on the project and select Validate to make the errors disappear
二.JS
右键项目->Properties->左侧列表菜单JavaScript->左侧列表子菜单Include Path->右侧Source选项卡->选择Excluded:(None)->Edit按钮->点Excluds patterns右边的Add->输入**/*.js(这里的**表示一个或多层文件夹路径)->OK->Finish->OK