元素类型 X 必须以匹配的结束标记结束
The element type X must be terminated by the matching end-tag
我正在为 dredmor 的地牢制作 mod。当我通过语法检查器或格式化程序 运行 代码时,我收到此错误:
Unable to parse any XML input. Error on line 6: The element type "skillDB" must be terminated by the matching end-tag "</skillDB>
".
这是我的 XML:
<skillDB>
<skill name="Gamblemancy" skillName="Gamblemancer" type="wizard"
description="The magic of the felt. Will you heal your enemies? Hurt yourself? It's up to the dice! Or cards. Or slot machine"/>
<art icon="\sprites\fillersprite.png" />
<loadout type="booze" subtype="Deck Of Cards" />
</skill>
<ability>
<name="Gamblemancy" icon="\sprites\fillersprite.png skillName="Gamblemancer" startSkill="1"
description="You are a gamblemancer! A holder of ultimate luck! And Debt!"/>
<primarybuff id="5" amount="2" />
<secondarybuff id="5" amount="2" />
</ability>
<ability>
<name="Luck of the draw" icon="\sprites\fillersprite.png" skillName="Gamblemancer" level="0"
description text="Pure luck courses through your veins! Except when it doesn't." />
<criticalBuff percentage="90" name="Lucky shot" />
</ability>
<ability>
<name="Royal flush" icon="\sprites\fillersprite.png skillName="Gamblemancer" level="1"
description text="Royal Flush! You win! Except that you don't!" />
<spell name="Royal Flush" />
</ability>
<skill skillName="Another skill tree's name">
<!--This is where some basic information about the skill tree goes-->
</skill>
<ability skillName="Another skill tree's name" startSkill="1">
<!--This is where the first level of the skill tree goes-->
</ability>
<ability skillName="Another skill tree's name" level="0">
<!--This is where the second level of the skill tree goes-->
</ability>
<ability skillName="Another skill tree's name" level="1">
<!--This is where the third level of the skill tree goes-->
</ability>
</skillDB>
您的 XML 存在几个句法问题,包括:
第一个 skill
元素有一个开始标记 self-closing 和一个结束标记。删除/
字符:
<skill name="Gamblemancy" skillName="Gamblemancer" type="wizard"
description="The magic of the felt. Will you heal your enemies?
Hurt yourself? It's up to the dice! Or cards. Or slot machine"/>
^
或删除结束标记:
</skill>
属性值缺少右引号。
太多了,如果没有 XML 模式或已知有效文档实例的样本,很难知道如何修复。这是至少 well-formed:
的一种可能性
<skillDB>
<skill name="Gamblemancy" skillName="Gamblemancer" type="wizard"
description="The magic of the felt. Will you heal your enemies? Hurt yourself? It's up to the dice! Or cards. Or slot machine">
<art icon="\sprites\fillersprite.png"/>
<loadout type="booze" subtype="Deck Of Cards"/>
<ability>
<NEEDTAG name="Gamblemancy" icon="\sprites\fillersprite.png" skillName="Gamblemancer" startSkill="1"
description="You are a gamblemancer! A holder of ultimate luck! And Debt!"/>
<primarybuff id="5" amount="2" />
<secondarybuff id="5" amount="2" />
</ability>
<ability>
<NEEDTAG name="Luck of the draw" icon="\sprites\fillersprite.png" skillName="Gamblemancer" level="0"
description="Pure luck courses through your veins! Except when it doesn't." />
<criticalBuff percentage="90" name="Lucky shot" />
</ability>
<ability>
<NEEDTAG name="Royal flush" icon="\sprites\fillersprite.png" skillName="Gamblemancer" level="1"
description="Royal Flush! You win! Except that you don't!" />
<spell name="Royal Flush" />
</ability>
</skill>
<skill skillName="Another skill tree's name">
<!--This is where some basic information about the skill tree goes-->
</skill>
<ability skillName="Another skill tree's name" startSkill="1">
<!--This is where the first level of the skill tree goes-->
</ability>
<ability skillName="Another skill tree's name" level="0">
<!--This is where the second level of the skill tree goes-->
</ability>
<ability skillName="Another skill tree's name" level="1">
<!--This is where the third level of the skill tree goes-->
</ability>
</skillDB>
我正在为 dredmor 的地牢制作 mod。当我通过语法检查器或格式化程序 运行 代码时,我收到此错误:
Unable to parse any XML input. Error on line 6: The element type "skillDB" must be terminated by the matching end-tag "
</skillDB>
".
这是我的 XML:
<skillDB>
<skill name="Gamblemancy" skillName="Gamblemancer" type="wizard"
description="The magic of the felt. Will you heal your enemies? Hurt yourself? It's up to the dice! Or cards. Or slot machine"/>
<art icon="\sprites\fillersprite.png" />
<loadout type="booze" subtype="Deck Of Cards" />
</skill>
<ability>
<name="Gamblemancy" icon="\sprites\fillersprite.png skillName="Gamblemancer" startSkill="1"
description="You are a gamblemancer! A holder of ultimate luck! And Debt!"/>
<primarybuff id="5" amount="2" />
<secondarybuff id="5" amount="2" />
</ability>
<ability>
<name="Luck of the draw" icon="\sprites\fillersprite.png" skillName="Gamblemancer" level="0"
description text="Pure luck courses through your veins! Except when it doesn't." />
<criticalBuff percentage="90" name="Lucky shot" />
</ability>
<ability>
<name="Royal flush" icon="\sprites\fillersprite.png skillName="Gamblemancer" level="1"
description text="Royal Flush! You win! Except that you don't!" />
<spell name="Royal Flush" />
</ability>
<skill skillName="Another skill tree's name">
<!--This is where some basic information about the skill tree goes-->
</skill>
<ability skillName="Another skill tree's name" startSkill="1">
<!--This is where the first level of the skill tree goes-->
</ability>
<ability skillName="Another skill tree's name" level="0">
<!--This is where the second level of the skill tree goes-->
</ability>
<ability skillName="Another skill tree's name" level="1">
<!--This is where the third level of the skill tree goes-->
</ability>
</skillDB>
您的 XML 存在几个句法问题,包括:
第一个
skill
元素有一个开始标记 self-closing 和一个结束标记。删除/
字符:<skill name="Gamblemancy" skillName="Gamblemancer" type="wizard" description="The magic of the felt. Will you heal your enemies? Hurt yourself? It's up to the dice! Or cards. Or slot machine"/> ^
或删除结束标记:
</skill>
属性值缺少右引号。
太多了,如果没有 XML 模式或已知有效文档实例的样本,很难知道如何修复。这是至少 well-formed:
的一种可能性<skillDB>
<skill name="Gamblemancy" skillName="Gamblemancer" type="wizard"
description="The magic of the felt. Will you heal your enemies? Hurt yourself? It's up to the dice! Or cards. Or slot machine">
<art icon="\sprites\fillersprite.png"/>
<loadout type="booze" subtype="Deck Of Cards"/>
<ability>
<NEEDTAG name="Gamblemancy" icon="\sprites\fillersprite.png" skillName="Gamblemancer" startSkill="1"
description="You are a gamblemancer! A holder of ultimate luck! And Debt!"/>
<primarybuff id="5" amount="2" />
<secondarybuff id="5" amount="2" />
</ability>
<ability>
<NEEDTAG name="Luck of the draw" icon="\sprites\fillersprite.png" skillName="Gamblemancer" level="0"
description="Pure luck courses through your veins! Except when it doesn't." />
<criticalBuff percentage="90" name="Lucky shot" />
</ability>
<ability>
<NEEDTAG name="Royal flush" icon="\sprites\fillersprite.png" skillName="Gamblemancer" level="1"
description="Royal Flush! You win! Except that you don't!" />
<spell name="Royal Flush" />
</ability>
</skill>
<skill skillName="Another skill tree's name">
<!--This is where some basic information about the skill tree goes-->
</skill>
<ability skillName="Another skill tree's name" startSkill="1">
<!--This is where the first level of the skill tree goes-->
</ability>
<ability skillName="Another skill tree's name" level="0">
<!--This is where the second level of the skill tree goes-->
</ability>
<ability skillName="Another skill tree's name" level="1">
<!--This is where the third level of the skill tree goes-->
</ability>
</skillDB>