On 2015-09-02 05:04, Dario Casalinuovo wrote:
Hi Adrien,
Here's one:
https://github.com/pulkomandy/fRiSS/blob/master/src/xmlnode.h [1]
https://github.com/pulkomandy/fRiSS/blob/master/src/xmlnode.cp [2]p
I've read your message the later week, but lately : p
Note that the usual way is simply saving things as archived
BMessages (in binary format), or, when manual editing is needed, to
use te driver_settings format and API (we have a wrapper to parse it
to a BMessage). I'm not sure XML is a good choice in either case:
when the user doesn't need to mess with the file, it is slower to
parse than archived BMessage.
I suppose nowadays this doesn't make so much difference, also because
of the lookahead nature of XML.
When the user needs to mess with the file, the XML syntax isn't the
most readable and easy to handle one.
There are other factors though, XML is very well know out there and
after all not so much difficult to be understood.