How to fix Eclipse validation error “No grammar constraints detected for the document”? March 28, 2023 by Tarik Putting this at the top of any offending file works for me: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE project>