Re: Unwanted XML warnings [message #223346] |
Sat, 01 November 2008 09:29  |
Eclipse User |
|
|
|
Qu0ll,
It sounds likely to be related to web tools (I assume you have the JEE
tools installed) so I've added that newsgroup to the "to" list of the
reply...
Qu0ll wrote:
> I have a number of XML files in many Java projects. For some strange
> reason, in some of those projects, Eclipse puts the warning emblem on
> the XML file icon and displays the warning "No grammar constraints
> (DTD or XML schema) detected for the document" inside the file when it
> is edited. How do I get rid of this warning and why does it only
> happen in some projects even though the XML files are identical? I
> have configured Eclipse with the "Indicate when no grammar specified =
> Ignore" option in the XML options but it still appears.
>
|
|
|
|
|
|
|
|
Re: Unwanted XML warnings [message #223655 is a reply to message #223647] |
Fri, 07 November 2008 15:38  |
Eclipse User |
|
|
|
> After changing the "Indicate when no grammar is specified" to Ignore,
> try Validating the project by right clicking on it, and then selecting
> Validate.
Precisely, just like Nick pointed out, you would need to validate the
project again. This is because the warnings must have been created prior
to changing the setting to "ignore". I opened bug 254647 to address this
issue, prompting the user that a rebuild is needed for this particular
settings change to take effect.
|
|
|
Powered by
FUDForum. Page generated in 0.05703 seconds