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

The link below explained what’s going on here. In short, Eclipse is trying to validate XML documents, and in my case, documents that Maven created to do its testing (I think.) To get rid of the warnings, turn off the check for “no grammar specified.”

The steps to disable this check are as follows:

  1. Open Eclipse’s Preferences
  2. Expand the entry “XML”
  3. Expand the sub-entry “XML Files”
  4. Now click on the “Validation” link
  5. Choose “Ignore” from the choice “Indicate when no grammar is specified”
  6. Apply this, then okay.

I learned this by following a link to StackOverflow to here.

Leave a Reply