From: SourceForge.net <no...@so...> - 2006-01-23 22:02:56
|
Bugs item #1410005, was opened at 2006-01-19 17:26 Message generated for change (Comment added) made by the_paranoid_ You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=1410005&group_id=1111 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 8 Submitted By: Miguel Angel Blanch Lardin (arianne_rpg) Assigned to: Nobody/Anonymous (nobody) Summary: Stendhal: Parse XML to find syntax errors Initial Comment: Now server just crash and we get no information about the offender line. ---------------------------------------------------------------------- >Comment By: Martin Spüler (the_paranoid_) Date: 2006-01-23 23:02 Message: Logged In: YES user_id=1290678 there is a program called xmllint. It's a part of the libxml2 library for *nix ... It parses XML-Files and prints out everything that's not correct. Either not "well-formed" or not valid in terms of the correspondig dtd-file. I ran it on creatures.xml, items.xml and npc.xml from CVS and it said following for npc.xml: npc.xml:21: validity error : Validation failed: no DTD found ! <data> ^ npc.xml:60: parser error : Opening and ending tag mismatch: type line 24 and npc </npc> ^ npc.xml:99: parser error : Opening and ending tag mismatch: type line 63 and npc </npc> ^ npc.xml:133: parser error : Opening and ending tag mismatch: type line 102 and npc </npc> ^ npc.xml:143: parser error : Opening and ending tag mismatch: type line 138 and shop </shop> ^ npc.xml:151: parser error : Opening and ending tag mismatch: type line 145 and shop </shop> ^ npc.xml:176: parser error : Opening and ending tag mismatch: type line 154 and shop </shop> ^ npc.xml:188: parser error : Opening and ending tag mismatch: shop line 153 and data </data> ^ npc.xml:189: parser error : Premature end of data in tag shop line 144 ^ npc.xml:189: parser error : Premature end of data in tag shop line 137 ^ npc.xml:189: parser error : Premature end of data in tag npc line 101 ^ npc.xml:189: parser error : Premature end of data in tag npc line 62 ^ npc.xml:189: parser error : Premature end of data in tag npc line 23 ^ npc.xml:189: parser error : Premature end of data in tag data line 21 I guess it has to be <type class="npc" subclass="welcommernpc"/> instead of <type class="npc" subclass="welcommernpc"> Hope this help ;) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=1410005&group_id=1111 |