[...]
<jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
[...]
而 Eclipse 验证会抛出以下错误:
Referenced file contains errors (http://java.sun.com/xml/ns/jdo/jdoconfig).
For more information, right click on the message in the Problems View and
select "Show Details..."
当点击详情时,我可以看到一堆像这样的行:
s4s-elt-character: Non-whitespace characters are not allowed in schema elements
other than 'xs:appinfo' and 'xs:documentation'. Saw 'var_U = "undefined";'.
"Saw ..." 这段文字中的不同行和不同内容在每个我使用 Google 插件中"新建 Web 应用程序项目..." 时开始的项目中都会出现。
所以有人遇到这个问题吗?有解决方法吗?
xsi:noNamespaceSchemaLocation
,而从xsi:noNamespaceSchemaLocation
到xsi:SchemaLocation
的更改,在我第一次查看时也被忽略了。我认为答案应该进行编辑以强调这种变化,并且就会更少引起错误的负面影响。 - Rex Remus