此内容没有您所选择的语言版本。

B.17.2.3. Opening and ending tag mismatch


Symptom
The following error occurs:
error: (name_of_guest.xml):61: Opening and ending tag mismatch: clock line 16 and domain
</domain>
---------^
Copy to Clipboard Toggle word wrap
Investigation
The error message above contains three clues to identify the offending tag:
The message following the last colon, clock line 16 and domain, reveals that <clock> contains a mismatched tag on line 16 of the document. The last hint is the pointer in the context part of the message, which identifies the second offending tag.
Unpaired tags must be closed with />. The following snippet does not follow this rule and has produced the error message shown above:
<domain type='kvm'>
  ...
    <clock offset='utc'>
Copy to Clipboard Toggle word wrap
This error is caused by mismatched XML tags in the file. Every XML tag must have a matching start and end tag.
Other examples of mismatched XML tags
The following examples produce similar error messages and show variations of mismatched XML tags.
This snippet contains an unended pair tag for <features>:
<domain type='kvm'>
 ...
 <features>
   <acpi/>
   <pae/>
 ...
 </domain>
Copy to Clipboard Toggle word wrap
This snippet contains an end tag (</name>) without a corresponding start tag:
<domain type='kvm'>
  </name>
  ...
</domain>
Copy to Clipboard Toggle word wrap
Solution
Ensure all XML tags start and end correctly.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat