I'm trying to figure out the syntax for replacing values in XML. I'll use the following code as an example. I'm showing the data from the original XML file for just one technology, but the syntax will apply to all of them. Here's the XML:
Now, let's say I want to change the cost of pottery from 35 to 40 (or 30 or whatever). What is the proper syntax for such a change?
The second thing I might want to do is add an entry. In the above, "trade" is set to true. I couldn't find a tech in the list for this example, but please assume that pottery was not set to trade=true by the game. How would I ADD an element later to turn trading on if that were the case?
Finally, if I wanted to look up this syntax question for myself in some reference material somewhere, where could I look?
Thanks!!!
Code:
<Technologies>
<Row>
<Type>TECH_POTTERY</Type>
<Cost>35</Cost>
<Description>TXT_KEY_TECH_POTTERY_TITLE</Description>
<Civilopedia>TXT_KEY_TECH_POTTERY_DESC</Civilopedia>
<Help>TXT_KEY_TECH_POTTERY_HELP</Help>
<Era>ERA_ANCIENT</Era>
<Trade>true</Trade>
<GoodyTech>true</GoodyTech>
<GridX>1</GridX>
<GridY>1</GridY>
<Quote>TXT_KEY_TECH_POTTERY_QUOTE</Quote>
<PortraitIndex>4</PortraitIndex>
<IconAtlas>TECH_ATLAS_1</IconAtlas>
<AudioIntro>AS2D_TECH_POTTERY</AudioIntro>
<AudioIntroHeader>AS2D_HEADING_TECH_POTTERY</AudioIntroHeader>
</Row>
Now, let's say I want to change the cost of pottery from 35 to 40 (or 30 or whatever). What is the proper syntax for such a change?
The second thing I might want to do is add an entry. In the above, "trade" is set to true. I couldn't find a tech in the list for this example, but please assume that pottery was not set to trade=true by the game. How would I ADD an element later to turn trading on if that were the case?
Finally, if I wanted to look up this syntax question for myself in some reference material somewhere, where could I look?
Thanks!!!