Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 未定义的属性名称(xmlns)_Html_Xml_Eclipse_Sdk_Html Validation - Fatal编程技术网

Html 未定义的属性名称(xmlns)

Html 未定义的属性名称(xmlns),html,xml,eclipse,sdk,html-validation,Html,Xml,Eclipse,Sdk,Html Validation,以下是我的HTML页面的开头: 1. <?xml version="1.0" encoding="utf-8" ?> 2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3. <html xmlns="http://www.w3.org/1999/xhtml" lang="fr"&

以下是我的HTML页面的开头:

1. <?xml version="1.0" encoding="utf-8" ?>
2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3. <html xmlns="http://www.w3.org/1999/xhtml" lang="fr">
4.     (...)
5. </html>
1。
2.
3.
4.(...)
5.
无论是否存在
部分,Eclipse都会在第3行返回一个警告事件

未定义的属性名称(xmlns)

这个
xmlns
属性是正确验证所必需的,所以我不理解为什么Eclipse会返回警告

此外,我将EclipseIndigo3.7.2与Eclipse数据库中的最后一个PHP开发工具一起使用

有人知道如何删除此警告,或者找到跳过此警告的方法吗


感谢您的阅读和帮助。

这里有类似案例的缺陷:


文件标题
文件的内容。
应该进行验证。在EclipseJuno中验证fine,此处:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr">
<head>
<title>Title of the document</title>
</head>

<body>
<div>The content of the document.</div>
</body>

</html>