GWT - Module.gwt.xml - XML验证警告 [英] GWT - Module.gwt.xml - XML validation warning
问题描述
如果我在最新的eclipse版本(kepler)中创建了一个新的GWT 2.6项目,我总是会收到以下警告消息:
该文件无法验证为XML定义http://google-web-toolkit.googlecode.com/svn/tags/
2.6.0 / distro-source / core / src / gwt-module。 dtd,它被指定为描述文件
在我的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 )是否可用,如果我在浏览器中调用它?
或者这个错误告诉我什么?如何解决这个警告?
已经有一个错误报告 here 。 现在,您可以仍然使用2.5.1中的一个
<!DOCTYPE module PUBLIC - // Google Inc. //DTD Google Web Toolkit 2.5.1 // ENhttp://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd\">
更新:
现在可以在这里找到新的DTD:
http:// gwtproject.org/doctype/<version-number>/gwt-module.dtd
举个例子:
http://gwtproject.org/doctype/2.8.0/gwt-module.dtd
code>
If I create a new GWT 2.6 project in the latest eclipse version (kepler), I always get the following warning message:
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
in my Module.gwt.xml next to the line:
<!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">
Should this file ("http://google-web-toolkit.googlecode.com/svn/tags/2.6.0/distro-source/core/src/gwt-module.dt") be available if I call it in the browser?
Or what does this error tell me? how can i resolve this warning?
There's already a bug report here.
For now, you can still use the one from 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">
UPDATE:
The new DTDs are now available here:
http://gwtproject.org/doctype/<version-number>/gwt-module.dtd
So for example:
http://gwtproject.org/doctype/2.8.0/gwt-module.dtd
这篇关于GWT - Module.gwt.xml - XML验证警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!