primem0ver
Emperor
I have yet another issue with what appears to be a bad habit of Firaxis' of writing careless XML for text tags.
I have already had to compensate for the fact that two tags with the same name can be of type "textOnly" or "eltOnly" (there is no actual schema for text files).
For example... a language tag can be in the format:
This means it is to be interpreted as a textOnly tag.
OR it can be in this format:
This is the format for an "eltOnly" or what I call a "container" tag. Notice that they have the same name (which as far as I know is not allowed in standard schema's).
Even though I have developed a way to handle this duplicity... now I have another problem that I found when the editor reads the text data for TXT_KEY_PERIANDER_HAGNON. Neither my editor nor I know how to deal with this:
Technically speaking this is BOTH a textOnly tag and an eltOnly tag. Perhaps XML standards allow this... but I can't tell if this is a mistake, or if I need to write code to read it as both.
Can anyone tell me if this is a mistake? Is the first part "Périandre" part of this guys French name? Or is his French name Pittacus?
I have already had to compensate for the fact that two tags with the same name can be of type "textOnly" or "eltOnly" (there is no actual schema for text files).
For example... a language tag can be in the format:
Code:
<French>%s2_player donne %d3_gold [ICON_GOLD]/tour à %s1_player pour couvrir ses dépenses.</French>
This means it is to be interpreted as a textOnly tag.
OR it can be in this format:
Code:
<French>
<Text>Jeju</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</French>
This is the format for an "eltOnly" or what I call a "container" tag. Notice that they have the same name (which as far as I know is not allowed in standard schema's).
Even though I have developed a way to handle this duplicity... now I have another problem that I found when the editor reads the text data for TXT_KEY_PERIANDER_HAGNON. Neither my editor nor I know how to deal with this:
Code:
<French>Périandre
<Text>Pittacus</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</French>
Technically speaking this is BOTH a textOnly tag and an eltOnly tag. Perhaps XML standards allow this... but I can't tell if this is a mistake, or if I need to write code to read it as both.
Can anyone tell me if this is a mistake? Is the first part "Périandre" part of this guys French name? Or is his French name Pittacus?