10

I'm currently trying to set up a new Diplomacy game using jDip, a Java app. Everything seems to look fine, everything follows the way existing variants work, but my "variants.xml" regularly crashes at start-up:

Error Message: XML Validation Fatal Error: line 175:col4:Elementtyp "VARIANTS" must be closed with the end tag "".

I have removed and added indents, switched the order of </variant> and </variants>, used redundant </variant> and </variants> closing tags, but nothing works. All the other "variants.xml" files of other, working variants use exactly the same formatting, so I am at a loss. (I sense that I overlook something really, really stupid, but after a week I still can't see what it is.)

Here is the code: https://pastebin.com/TkQTATqV

I'm currently trying to set up a new Diplomacy game using jDip, a Java app. Everything seems to look fine, everything follows the way existing variants work, but my "variants.xml" regularly crashes at start-up: >Error Message: XML Validation Fatal Error: line 175:col4:Elementtyp &quot;VARIANTS&quot; must be closed with the end tag "". I have removed and added indents, switched the order of </variant> and </variants>, used redundant </variant> and </variants> closing tags, but nothing works. All the other "variants.xml" files of other, working variants use exactly the same formatting, so I am at a loss. (I sense that I overlook something really, really stupid, but after a week I still can't see what it is.) Here is the code: https://pastebin.com/TkQTATqV

4 comments

[–] Polsaker 6 points (+6|-0) Edited

On line 79, your CDATA escape is missing one "]"

Edit: It should look like <description><![CDATA[7Islands]]></description> instead of <description><![CDATA[7Islands]></description>

[–] Skyrock [OP] 3 points (+3|-0)

I knew that it had to be something stupid. Thanks, that did the trick!