我正在创建一个SEO系统。除了一些网站,一切正常。
我正在使用 Laravel 5.4和DomDocument
当我尝试扫描时,它会给我此错误:
ErrorException in ScanController.php line 252:
DOMDocument::load(): Attribute xmlns redefined in /seo/public/tempxml/result.xml, line: 3
ScanController第252行:
$dom->load('tempxml/result.xml');
result.xml第3行:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl" xml:lang="nl"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="description" content="agrarisch handels en hulpbedrijf, handelsonderneming in Vlagtwedde en Mussel (Kopstukken). Alles voor tuin en park hobby doe het zelf dier en tuin." /><meta name="keywords" content="machines, ter apel, beregening, grasmaaier, zitmaaiers, bosmaaier, trimmer, kettingzaag" /><title>website</title><link rel="stylesheet" type="text/css" href="https://www.website.nl/wp-content/themes/website/style.css" /><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script><script type="text/javascript" src="https://www.website.nl/wp-content/themes/website/assets/js/backstretch.min.js"></script><script type="text/javascript" src="https://www.website.nl/wp-content/themes/website/assets/js/easySlider1.7.js"></script><!--[if lt IE 7]>
这是什么问题?正如我所说,其他网站运作完美,但这个没有。