How would I got about calling information from a XML file or text file into a program? I want to use XML as a data storage unit for my program but cant figure out how.
Thanks for your time.
- Rayn
Printable View
How would I got about calling information from a XML file or text file into a program? I want to use XML as a data storage unit for my program but cant figure out how.
Thanks for your time.
- Rayn
Have you tried searching the internet for XML read/write class libraries?
Personally I don't like XML as data storage method. It's ASCII nature wastes a lot of disk space.
Unless you want humans to be able to directly read the format...
What would be the best way for storage besides XML and text files?
Binary.
Of course it depends on your data.
If you need an XML parser, have a look at Xerces . It's Apache's open source XML parser. It also has a DOM interface.
I prefer it over Microsoft's XML parser, since it's proprietary, and also over libxml, since it seems to be aimed at Linux too much and I couldn't find a working DOM wrapper for C++.
Good luck!