How to fix Eclipse validation error "No grammar constraints detected for the document"?
Posted
by
Casey
on Stack Overflow
See other posts from Stack Overflow
or by Casey
Published on 2011-01-28T21:05:14Z
Indexed on
2011/01/28
23:26 UTC
Read the original article
Hit count: 198
Eclipse 3.5.2 is throwing an XML schema warning message:
No grammar constraints (DTD or XML schema) detected for the document.
The application.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<application
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd"
version="5">
</application>
I do not want to disable the warning. How can I get Eclipse to correctly validate the XML document?
© Stack Overflow or respective owner