If I have an xml file that looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<installerDefaults pathToAllUsers="C:\ProgramData\prog">
<databaseConnector>
<localDatabasePath>C:\ProgramData\prog\tracking.db3</localDatabasePath>
</databaseConnector>
<defaultLocales>
<installerDefaultLocale>en-US</installerDefaultLocale>
</defaultLocales>
<directories>
<languageDataBasePath>C:\ProgramData\prog\Content</languageDataBasePath>
</directories>
</installerDefaults>
And I want to change the string "C:\ProgramData\prog" to something else in all three instances, how can I modify it so I only make one change and it changes all three? Actually, it'd be better if I could just change the "prog" and keep everything else.
I'm not using any language, I'm just editing the file in a text editor. Maybe what I'm asking isn't possible. Isn't there a way to concatenate strings, pseudo-xml e.g.
s = "C:\ProgramData\abcdefg\"
<installerDefaults pathToAllUsers = s>
<localDatabasePath>s + "tracking.db3"</localDatabasePath>
<languageDataBasePath>s + Content</languageDataBasePath>
So when the program that reads it in looks for the value of localDatabasePath, it get's C:\ProgramData\abcdefg\tracking.db3
Is that possible?