2014-01-30 49 views
0

任何人都可以幫我明白爲什麼我會收到以下錯誤嗎? :第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> 
+0

在Notepad ++等應用程序中打開您的xml內容,即使這會幫助 – Satpal

+0

或者使用任何XML編輯器來檢查錯誤。 – Rico

+0

是的,很高興找出哪些額外的內容。並且我發佈的錯誤是當我在記事本++中使用xml插件運行xml文檔時得到的。 – user3254752

回答

0

發現了問題:
使用attack_type="PHYSICAL" slot="3"代替attack_type="PHYSICAL"slot="3"
你只是錯過了一個空間。

+0

你是什麼意思? – user3254752

+0

沒有結果,仍然saame錯誤 – user3254752

+0

@ user3254752發現問題! – Soosh