Jump to content
  • 0

[DP] Fatal Error, XML.


Question

Posted

Hello while i was setting ready my Pack, an unaexceptable error Appeared. I searched if i left any <for> unclosed with </for> but haven't noticed anything ( I checked the files twice ) Someone tell me What's wrong, i would appreciate it.


[Fatal Error] 0300-0399.xml:111:5: The element type "for" must be terminated by
the matching end-tag "</for>".
Error loading file C:\server\gameserver\data\stats\skills\0300-0399.xml
org.xml.sax.SAXParseException: The element type "for" must be terminated by the
matching end-tag "</for>".
       at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
       at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
       at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
       at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:106
)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadSkills(SkillsEngine.jav
a:95)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadAllSkills(SkillsEngine.
java:104)
       at net.sf.l2j.gameserver.datatables.SkillTable.<init>(SkillTable.java:51
)
       at net.sf.l2j.gameserver.datatables.SkillTable.getInstance(SkillTable.ja
va:44)
       at net.sf.l2j.gameserver.templates.L2Armor.<init>(L2Armor.java:68)
       at net.sf.l2j.gameserver.skills.DocumentItem.makeItem(DocumentItem.java:
155)
       at net.sf.l2j.gameserver.skills.DocumentItem.parseItem(DocumentItem.java
:146)
       at net.sf.l2j.gameserver.skills.DocumentItem.parseDocument(DocumentItem.
java:101)
       at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:115
)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadData(SkillsEngine.java:
159)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadArmors(SkillsEngine.jav
a:119)
       at net.sf.l2j.gameserver.datatables.ItemTable.<init>(ItemTable.java:254)

       at net.sf.l2j.gameserver.datatables.ItemTable.getInstance(ItemTable.java
:191)
       at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:333)
       at net.sf.l2j.gameserver.GameServer.main(GameServer.java:755)

[Fatal Error] 1400-1499.xml:696:6: The element type "for" must be terminated by
the matching end-tag "</for>".
Error loading file C:\server\gameserver\data\stats\skills\1400-1499.xml
org.xml.sax.SAXParseException: The element type "for" must be terminated by the
matching end-tag "</for>".
       at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
       at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
       at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
       at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:106
)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadSkills(SkillsEngine.jav
a:95)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadAllSkills(SkillsEngine.
java:104)
       at net.sf.l2j.gameserver.datatables.SkillTable.<init>(SkillTable.java:51
)
       at net.sf.l2j.gameserver.datatables.SkillTable.getInstance(SkillTable.ja
va:44)
       at net.sf.l2j.gameserver.templates.L2Armor.<init>(L2Armor.java:68)
       at net.sf.l2j.gameserver.skills.DocumentItem.makeItem(DocumentItem.java:
155)
       at net.sf.l2j.gameserver.skills.DocumentItem.parseItem(DocumentItem.java
:146)
       at net.sf.l2j.gameserver.skills.DocumentItem.parseDocument(DocumentItem.
java:101)
       at net.sf.l2j.gameserver.skills.DocumentBase.parse(DocumentBase.java:115
)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadData(SkillsEngine.java:
159)
       at net.sf.l2j.gameserver.skills.SkillsEngine.loadArmors(SkillsEngine.jav
a:119)
       at net.sf.l2j.gameserver.datatables.ItemTable.<init>(ItemTable.java:254)

       at net.sf.l2j.gameserver.datatables.ItemTable.getInstance(ItemTable.java
:191)
       at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:333)
       at net.sf.l2j.gameserver.GameServer.main(GameServer.java:755)

8 answers to this question

Recommended Posts

  • 0
Posted

rofl read what it says....

 

[Fatal Error] 0300-0399.xml:111:5: The element type "for" must be terminated by

the matching end-tag "</for>".

Error loading file C:\server\gameserver\data\stats\skills\0300-0399.xml

org.xml.sax.SAXParseException: The element type "for" must be terminated by the

matching end-tag "</for>".

 

 

  • 0
Posted

rofl read what it says....

 

[Fatal Error] 0300-0399.xml:111:5: The element type "for" must be terminated by

the matching end-tag "</for>".

Error loading file C:\server\gameserver\data\stats\skills\0300-0399.xml

org.xml.sax.SAXParseException: The element type "for" must be terminated by the

matching end-tag "</for>".

 

 

Yes I read it, I checked the file ( every <for> closes with </for> maybe there is a typo ) i cannot find it.

 

See this uploaded in pastebin: http://pastebin.com/m478941bb

  • 0
Posted

XML is a strict standard. Such things are FORBIDDEN and will NEVER be allowed in XML (in contrary to HTML):

  <enchant1for>
 <for>
   <effect count="1" name="Buff" time="1200" val="0" stackOrder="#ench1mp" stackType="MPregen">
      <mul stat="maxMp" order="0x30" val="#ench1mp">
        <using kind="Bow"/>
      </mul>
   </effect>
 </enchant1for>
 </for>

 

Also, randomly stashing '</add>' will not do any good, so ditch such things:

  <for>
   <effect name="Buff" time="10800" count="1" val="0">
     <add order="0x40" stat="reflectDam" val="20"/>
   </effect>
   </add>
 </for>
 <enchant1for>
   <effect name="Buff" time="#ench1time" count="1" val="0">
     <add order="0x40" stat="reflectDam" val="20"/>
   </effect>
   </add>
 </enchant1for>

 

'cond' is not a child node of 'for'!.. It's in same hierarchy level, so such things are invalid:

  <for>
   <cond><using kind="Bow"/></cond>
 </for>

 

Another example of hierarchy ignorance:

    <effect count="1" name="Stun" time="3" val="0"/>
      <using kind="Shield"/>

 

And here's the valid file: http://pastebin.com/m4494630

  • 0
Posted

XML is a strict standard. Such things are FORBIDDEN and will NEVER be allowed in XML (in contrary to HTML):

  <enchant1for>
  <for>
    <effect count="1" name="Buff" time="1200" val="0" stackOrder="#ench1mp" stackType="MPregen">
       <mul stat="maxMp" order="0x30" val="#ench1mp">
         <using kind="Bow"/>
       </mul>
    </effect>
  </enchant1for>
  </for>

 

Also, randomly stashing '</add>' will not do any good, so ditch such things:

  <for>
    <effect name="Buff" time="10800" count="1" val="0">
      <add order="0x40" stat="reflectDam" val="20"/>
    </effect>
    </add>
  </for>
  <enchant1for>
    <effect name="Buff" time="#ench1time" count="1" val="0">
      <add order="0x40" stat="reflectDam" val="20"/>
    </effect>
    </add>
  </enchant1for>

 

'cond' is not a child node of 'for'!.. It's in same hierarchy level, so such things are invalid:

  <for>
    <cond><using kind="Bow"/></cond>
  </for>

 

Another example of hierarchy ignorance:

    <effect count="1" name="Stun" time="3" val="0"/>
      <using kind="Shield"/>

 

And here's the valid file: http://pastebin.com/m4494630

Really really really, Thank you. Friend :)

Guest
This topic is now closed to further replies.


×
×
  • Create New...