GWT - Module.gwt.xml - XML验证警告

时间:2014-04-04 14:31:52

标签: xml validation gwt doctype

如果我在最新的eclipse版本(kepler)中创建一个新的GWT 2.6项目,我总会收到以下警告信息:

The file cannot be validated as the XML definition "http://google-web-toolkit.googlecode.com/svn/tags/
 2.6.0/distro-source/core/src/gwt-module.dtd" that is specified as describing the syntax of the file

在我的Module.gwt.xml行旁边:

<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.6.0//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.6.0/distro-source/core/src/gwt-module.dtd">

如果我在浏览器中调用它,该文件(“http://google-web-toolkit.googlecode.com/svn/tags/2.6.0/distro-source/core/src/gwt-module.dt”)是否可用?

或者这个错误告诉我什么?我该如何解决此警告?

1 个答案:

答案 0 :(得分:39)

已经有错误报告here

目前,您仍然可以使用2.5.1

中的那个
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">

<强>更新

现在可以在这里找到新的DTD:

http://www.gwtproject.org/doctype/<version-number>/gwt-module.dtd

例如:

http://www.gwtproject.org/doctype/2.8.0/gwt-module.dtd
相关问题