任何人都可以幫我明白爲什麼我會收到以下錯誤嗎? :第10行的XML解析錯誤:文檔底部的額外內容。XML解析錯誤:「文檔底部的額外內容」
<?xml version="1.0" encoding="utf-8"?>
<item_templates xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<item_template id="100000363" name="??? ??" level="30" mask="7256" weapon_type="SWORD_1H" max_stack_count="1" item_type="ABYSS" category="SWORD" quality="RARE" price="57600" race="PC_ALL" no_enchant="false" max_enchant="10" bonus_apply="EQUIP" option_slot_bonus="4" restrict="30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30" desc="1433409" attack_gap="0" attack_type="PHYSICAL"slot="3" equipment_type="WEAPON" m_slots="4">
<modifiers>
<add name="PVP_ATTACK_RATIO" value="24" bonus="true" />
</modifiers>
<weapon_stats min_damage="88" max_damage="108" attack_speed="1400" physical_critical="50" physical_accuracy="408" parry="472" magical_accuracy="107" attack_range="1500" hit_count="2" />
<acquisition type="AP" ap="4900" />
</item_template>
<item_template id="100000364" name="??? ??" level="30" mask="7256" weapon_type="SWORD_1H" max_stack_count="1" item_type="ABYSS" category="SWORD" quality="RARE" price="57600" race="PC_ALL" no_enchant="false" max_enchant="10" bonus_apply="EQUIP" option_slot_bonus="4" restrict="30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30" desc="1433409" attack_gap="0" attack_type="PHYSICAL"slot="3" equipment_type="WEAPON" m_slots="4">
<modifiers>
<add name="PVP_ATTACK_RATIO" value="30" bonus="true" />
</modifiers>
<weapon_stats min_damage="108" max_damage="134" attack_speed="1400" physical_critical="50" physical_accuracy="540" parry="560" magical_accuracy="158" attack_range="1500" hit_count="2" />
<acquisition type="AP" ap="11100" />
</item_template>
</item_templates>
在Notepad ++等應用程序中打開您的xml內容,即使這會幫助 – Satpal
或者使用任何XML編輯器來檢查錯誤。 – Rico
是的,很高興找出哪些額外的內容。並且我發佈的錯誤是當我在記事本++中使用xml插件運行xml文檔時得到的。 – user3254752