Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » No grammar constraints (DTD or XML schema) detected for the document.(Fix the code, not turn off the warning.)
No grammar constraints (DTD or XML schema) detected for the document. [message #636292] Sat, 30 October 2010 13:21 Go to next message
Raney Mising name is currently offline Raney Mising name
Messages: 9
Registered: September 2010
Junior Member
Hello,

I have been using the following code for a while without any warnings.
I have installed the latest version of eclipse and am now getting the warning:
No grammar constraints (DTD or XML schema) detected for the document.
I have several suggestions of how to disable the warning.
I would like to understand the warning and fix it, not turn it off.

<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='test'>
<inherits name='com.google.gwt.user.User'/>
<entry-point class='test.client.Test'/>
<source path='client'/>
<source path='shared'/>
</module>


Thanks,
Raney

I will get there eventually, I hope.
Re: No grammar constraints (DTD or XML schema) detected for the document. [message #636330 is a reply to message #636292] Sat, 30 October 2010 23:10 Go to previous message
Nick Sandonato is currently offline Nick Sandonato
Messages: 126
Registered: July 2009
Senior Member
Hi,

This message is an indicator that you have no grammar for which to validate your document's contents against, more or less. So essentially, only well-formedness is going to be checked.

By having a grammar declared, either through a DTD or Schema, we can help identify if any attributes or elements are being used that shouldn't, missing, or of the wrong type. This may help curb potential problems that might arise during processing of the XML document by whatever is handling your XML file later. It also can provide your with content assistance based on the grammar and what is expected at the cursor's current offset.

The way to fix this would be to add the DOCTYPE declaration or schema location for your grammar, if there is one. It's not the worst thing in the world to see this message, though.
Previous Topic:tomcat 5.5 is not listed in the new server wizard.
Next Topic:XSD comparer
Goto Forum:
  


Current Time: Tue Sep 30 10:27:27 GMT 2014

Powered by FUDForum. Page generated in 0.02390 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software