If I have an xml file and want to set some properties in it (read and write
it I guess), what is the best alternative?
I don't want to use xlst - this seems like I should be able to just specify
the node and replace the parameter similar to what I am doing now in
InstallScript:
oConfig = CreateObject("MSXML.DOMDocument");
oConfig.load(configFile);
oLanguageCtl =
oConfig.selectSingleNode("Config/GeneralDlgs/LocaleInfoDlg/LanguageCtl");
oLanguageCtl.text = Locale;
....
oConfig.save(configFile);
for the parameter shown here:
<Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="C:\Doc\XML_based_si lent_install\InstallConfig
_APJSP.xsd">
<GeneralDlgs>
<LocaleInfoDlg Visible="false">
<LanguageCtl>English (United States)</LanguageCtl>