Help with XML Editing

Sinroth

Chieftain
Joined
May 2, 2008
Messages
3
I think this is the right place to put this. Anyhow, I've been reading the excellent tutorials posted on this forum, to try and add a Sweden Civ to the game (I'm aware there's already a mod for this), but whenever I load it up, I get the following errors;

First Error

Spoiler :
Failed Loading XML file xml\text\civ4gametextinfos_cities.xml.
[.\FXml.cpp:133] Error parsing XML File -
File: xml\text\civ4gametextinfos_cities.xml
Reason: End tag 'Civ4GameText' does not
match the start tag 'TEXT'.

Line: 19449, 3
Source: </Civ4GameText>


Here's what the start looks like:

<-- Large comment -->
<Civ4GameText xmlns="http://www.firaxis.com">
<TEXT>

And the end:

</TEXT>
</Civ4GameText>

I've tried taking the jargon off the very first tag, but still nothing.

Second Error
Spoiler :

LoadXML call failed for xml\text\civ4gametextinfos_cities.xml.
Current XML file is: xml\GlobalDefinesAlt.xml


This one, I have no idea. After the second one, I get the first error again.

Third Error
LoadXML call failed for xml\text\civ4gametextinfos_cities.xml
Current XML file is: xml\text\civ4gametext_civilopedia_bonuses.xml

When loading up the Mod, everything runs fine, but when choosing the "Swedish Civ", the names keep the long TXT_KEY_CITY_NAME_STOCKHOLM names. If it matters, I do not have any expansions.

Any solutions? Sorry if it's a bit long, and thanks in advance.
 
get "xml marker" or "xml spy", that way they will automatically correct typos. and also, if you get a line error for the xml like "Line 939,47" then you can find the error. these programs wont let you save if you have a bad format typo.

good luck
 
I have XMLfox. it's free, and i find it works very well. notepad ++ is always a good option too (Just in general, due to the number of languages it recognises). Your first error means you've missed a starting <Tag> or a finishind </Tag> somewhere, probably </TEXT>. When i get that i usually ctrl+F "TEXT" and just go through and make sure they're all paired. crude but effective.
 
If you're still trying to find a solution, you can use my XML editor. Just load the file into the editor and it will come up with an error message indicating the line and column numbers where the error occured. The link to the editor is located in my signature.
 
Back
Top Bottom