pheadxdll2
Programmer
XML has been my crutch for years and I always just want to get it out of the way, regardless of how I do it.
I got this simple routine that I wanted to expand upon but wasn't sure how to do it. Long story short, I totally rewrote it and it never worked since. I basically just need it to append to my application's settings xml file. Its basic structure looks like this:
<settings>
<startOnWin>Yes</startOnWin>
<time>h</time>
</settings>
My old routine basically had two different things to do:
1. See if the file exists or not. If it doesn't. Make one with the right structure. (just add <settings> )
2. If the file exists and you want to change, for example <time> up there ^, then change the value by appending to the xml file. If <time> doesn't exist then create it.
As you can see my knowledge for xml terminology isn't that extensive. Please give me a break.
If somebody could write me up a little routine that would be awesome. I've pretty much got the entire app written and all I'd have to do is just plug in this code.
Thanks so much,
Alex
I got this simple routine that I wanted to expand upon but wasn't sure how to do it. Long story short, I totally rewrote it and it never worked since. I basically just need it to append to my application's settings xml file. Its basic structure looks like this:
<settings>
<startOnWin>Yes</startOnWin>
<time>h</time>
</settings>
My old routine basically had two different things to do:
1. See if the file exists or not. If it doesn't. Make one with the right structure. (just add <settings> )
2. If the file exists and you want to change, for example <time> up there ^, then change the value by appending to the xml file. If <time> doesn't exist then create it.
As you can see my knowledge for xml terminology isn't that extensive. Please give me a break.
If somebody could write me up a little routine that would be awesome. I've pretty much got the entire app written and all I'd have to do is just plug in this code.
Thanks so much,
Alex