You are here

[Solved] Having some trouble with XML editing

1 post / 0 new
terra666
Offline
Last seen: 3 years 3 months ago
Joined: 2014-06-22 13:42
[Solved] Having some trouble with XML editing

Need to make sure to check spelling of everything!!! Smile

I have these XML file which needs to be edited at launch time:

<?xml version="1.0" encoding="UTF-8"?>
<installerDefaults pathToAllUsers="%DataDir%">
<databaseConnector>
<localDatabasePath>%DataDir%\some.file</localDatabasePath>
</databaseConnector>
<defaultLocales>
<installerDefaultLocale>en-US</installerDefaultLocale>
</defaultLocales>
<directories>
<languageDataBasePath>%DataDir%\Content</languageDataBasePath>
</directories>
</installerDefaults>

Need to change %DataDir% to actual path from %PAL:DataDir%:


[FileWrite1]
Type=XML attribute
File="%PAL:AppDir%\AppDir\support\config\some.xml"
XPath=/installerDefaults
Attribute=pathToAllUsers
Value="%PAL:DataDir%"

[FileWrite2]
Type=XML text
File="%PAL:AppDir%\AppDir\support\config\some.xml"
XPath=/installerDefaults/databaseConnector/localDatabasePath
Value="%PAL:DataDir%\some.file"

[FileWrite3]
Type=XML text
File="%PAL:AppDir%\AppDir\support\config\some.xml"
XPath=/installerDefaults/directories/languageDataBasePath
Value="%PAL:DataDir%\Content"