mogronalol
mogronalol

Reputation: 3015

Eclipse won't build project with XML errors

I have recently switched from Netbeans to Eclipse. I have a project which contains a syntactically incorrect XML file which is used for Unit Testing. The project then has a red exclamation mark over it, and when you expand the hierarchy the XML file is the only node which displays this icon.

It appears my project is not building due to this. Is there a setting somewhere that I can change so it doesn't get prevented by this XML file?

Upvotes: 0

Views: 284

Answers (2)

Wojciech Owczarczyk
Wojciech Owczarczyk

Reputation: 5735

You can try to:

  • Customize and fine-tune validation options located in Window -> Preferences -> Validation -> XML
  • Delete particular errors from Problems view (they will reapper during the next clean/build of your project)

Upvotes: 2

Kai
Kai

Reputation: 39641

Check your XML validation configuration here: Window -> Preferences -> XML -> XML Files -> Validation.

But this shouldn't be that restrictive by default to make your project couldn't be build.

Upvotes: 2

Related Questions