No grammar constraints (DTD or XML schema) detected for the document.

I used to wonder this warning when I started Android programming. You can safely ignore it as Android environment and compilation doesn’t require nor need it. Fortunately, there is a way to make it disappear. It might take awhile like a minute for the yellow warning mark to disappear after going through the instructions. Restart Eclipse if you’re hasty minded.

  1. Window -> Preferences
  2. Expand XML
  3. Expand XML Files
  4. Select Validation
  5. Choose “Ignore” from the “Indicate when no grammar is specified” combo
  6. OK
  7. Build -> Clean…
  8. Right click project -> Build Project

You might also want to check the original source for my tip. Note that restarting is not required.

http://blog.thaichaiguy.com/1596/android-how-to-remove-no-grammar-constraints-dtd-or-xml-schema-warning-from-eclipse/

About these ads

3 thoughts on “No grammar constraints (DTD or XML schema) detected for the document.

  1. I seem to agree with the comment of from ahmedoheb…
    This indeed does not solve the issue; but there is news that it is a ‘Bogus’ error…
    Users, please confirm and use…

  2. Pingback: No grammar constraints (DTD or XML schema) detected for the document

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s