Teifion
Teifion

Reputation: 110999

What's actually wrong with my XML?

I have an automatically generated XML file for the game that I run. It however apparently has an error.

The file is at: http://woarl.com/myXML.xml

And the error is apparently at line 520, here are lines 519-521

<type>Academy</type>
<typeid>23</typeid>
<completion>4</completion>

Any ideas as to what the error is?

Upvotes: 1

Views: 172

Answers (2)

jrockway
jrockway

Reputation: 42674

The file you linked to ends right at line 520. There is no typeid 23 and completion 4.

Perhaps your web server is doing something stupid.

Upvotes: 1

Lasse V. Karlsen
Lasse V. Karlsen

Reputation: 391406

The file is incomplete.

When downloaded through the browser, it ends not like you shown, but like this:

<city> 
    <id>8</id> 
    <name>Breisgau</name> 
    <xpos>58</xpos> 
    <ypos>934</ypos> 
    <continent>Rayti</continent> 
    <continentid>3</continentid> 
    <size>52297</size> 
    <port>0</port> 
    <walled>1</walled> 
    <building> 
        <type>Academy</type> 

That's it, the last <type> line there is line 518.

Upvotes: 3

Related Questions