GWT Module’s Missing DTD Tag

GWT Module AutoSuggestion Magic

DTD’s are great. They let IDE’s like Eclipse know what is and is not valid XML. And, when you’re unsure or inquisitive, you can just ALT+ENTER and learn every available tag. That is amazing. Alas, it seems that Google and GWT continue to ignore this standard.

However, you can add these tags yourself and get the IDE auto-validation auto-suggestion features. Just change the top of your module.get.xml to the following.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module SYSTEM "http://google-web-toolkit.googlecode.com/svn/releases/2.1/distro-source/core/src/gwt-module.dtd">
...

You probably noticed that is the DTD for GWT 2.1 and we’re currently at GWT 2.4. Beyond 2.1, they don’t seem to have DTD’s available. Let me know if you find them and I’ll update this entry.

Note this was initially brought up in GWT 1.6 by Kazik Pogoda here.

Missing jdoconfig Schema

Yep, this one is missing too. Come on GWT, does anyone read the Eclipse errors before rolling out a “New Web Application” GWT Wizard?

<?xml version="1.0" encoding="utf-8"?>
<jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig http://java.sun.com/xml/ns/jdo/jdoconfig_3_0.xsd">

Additional Missing GWT/GAE DTD’s and XSD’s

You’ll also find that other missing DTD/XSD’s. Google says they are in the SDK docs if you want them. However, all of these that I’ve tried with Eclipse have been rejected for having invalid formatting issues (i.e. tags with missing attributes). Here they are if you want to fix them up.