Question:
Hi again!
After making a few trail gadgets I´m starting to see a great use for gadget applications, feeling very creative! I read a thread about writing info to text-files. Would it be possible to create and write info to xml-files? I´m in a bit over my head here but still.. text feels a bit old =)
Thanks
/Kalle
Answer1:
Yup. Works the same way as writing to a txt file, just change the extension to .xml and write to the file using XML tags (double check some standard XML formats to get a better idea of how it works).
The downside is that changing the XML file usually requires it to be re-written. But it's usually pretty easy to read it once you have the knack of it down.
Good luck!
P.S.: In like 2,000 people, at least 1-2 or more might have an issue that requires the XML to be deleted and reformed, but it's usually not terrible unless you have a ton of stuff in there.
Answer2:
You're better off using the MSXML DOM via ActiveX to read and write XML files, because then you don't have to track tags on your own. There's no reason to write your own XML parser.
Answer3:
aaah that is just outstanding! Thanks to both of you but I´ll go with MSXML and ActiveX. That feels a bit more pratical.