XML解析错误:“文档底部的额外内容”

时间:2014-01-30 19:49:18

标签: xml parsing

任何人都可以帮我看看为什么我收到以下错误? :第10行的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>

1 个答案:

答案 0 :(得分:0)

发现问题:
使用attack_type="PHYSICAL" slot="3"代替attack_type="PHYSICAL"slot="3"
你错过了一个空间。