The element type “META” must be terminated by the matching end-tag “</META>”

独自空忆成欢 提交于 2019-12-05 03:28:34

That looks like it is a live document; i.e. one that changes fairly frequently. There is also no sign of a <meta> tag in it.

I can think of two explanations for what is happening:

  • Sometimes the document is being generated or created incorrectly.

  • Sometimes you are getting an HTML error page instead of the document you are expecting, and the XML parser can't cope with a <meta> tag in the HTML's <head>. That is because the <meta> tag in (valid) HTML does not need to have a matching / closing </meta> tag. (And for at least some versions of HTML, it is not allowed to have a closing tag.)

To track this down, you are going to have to capture the precise input that is causing the parse to fail.

You can try <meta/> instead of <meta>.

user12023297

just apply (/) after every line with meta

<meta name=" " content=" " />

when using ,

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

and really it works

It is not XML but HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">

The XML parser will not parse it.

I see the file hasn't any content and it doesn't look like valid RSS file. May be any server-side error occurs.

can you use this tag

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!