I'm considering saving my application settings as a xml instead of using the registry but I'm having a hard time understanding and using OmniXML.
I know some of you here use and recomend OnmiXML so I hope someone can give me some pointers.
I'm used to use TRegistry to create a new key if it doesn't exist, but I can't seem to find any similar option on OmniXML.
Basically what I wish to do is save settings on different XML levels, something like this:
<ProgramName version="6">
<profiles>
<profile name="Default">
<Item ID="aa" Selected="0" />
<Item ID="bb" Selected="1" />
</profile>
</profiles>
<settings>
<CheckForUpdates>1</CheckForUpdates>
<CheckForUpdatesInterval>1</CheckForUpdatesInterval>
<ShowSplashScreen></ShowSplashScreen>
</settings>
</ProgramName>
Now, when first running the program I wont have the xml file so I will need to create all the sub-levels. With the TRegistry it was easy, just call OpenKey(pathtokey, True) and the key will be created if it doesn't exist. Is there any comparable way to do the same thing with OmniXML? Someting like:
SetNodeStr('./settings/CheckForUpdates', True);
Which would create the "path" if it doesn't already exist.